diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2023-10-21 00:40:07 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2023-11-06 01:51:25 +0100 |
commit | 4c7b3f7fb7c8c66d669d107e717f9de41ef81e92 (patch) | |
tree | e6697bf07318d09b2273febb4229af01fed1583c /fs/gfs2/inode.c | |
parent | 92099f0c92270c8c7a79e6bc6e0312ad248ea331 (diff) | |
download | lwn-4c7b3f7fb7c8c66d669d107e717f9de41ef81e92.tar.gz lwn-4c7b3f7fb7c8c66d669d107e717f9de41ef81e92.zip |
gfs2: Get rid of gfs2_alloc_blocks generation parameter
Get rid of the generation parameter of gfs2_alloc_blocks(): we only ever
set the generation of the current inode while creating it, so do so
directly.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r-- | fs/gfs2/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index ee5b07d296f7..54b449cd6201 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c @@ -417,7 +417,7 @@ static int alloc_dinode(struct gfs2_inode *ip, u32 flags, unsigned *dblocks) if (error) goto out_ipreserv; - error = gfs2_alloc_blocks(ip, &ip->i_no_addr, dblocks, 1, &ip->i_generation); + error = gfs2_alloc_blocks(ip, &ip->i_no_addr, dblocks, 1); if (error) goto out_trans_end; |