summaryrefslogtreecommitdiff
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2023-10-21 01:40:07 +0300
committerAndreas Gruenbacher <agruenba@redhat.com>2023-11-06 03:51:25 +0300
commit4c7b3f7fb7c8c66d669d107e717f9de41ef81e92 (patch)
treee6697bf07318d09b2273febb4229af01fed1583c /fs/gfs2/inode.c
parent92099f0c92270c8c7a79e6bc6e0312ad248ea331 (diff)
downloadlinux-4c7b3f7fb7c8c66d669d107e717f9de41ef81e92.tar.xz
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.c2
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;