diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2023-10-21 01:40:07 +0300 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2023-11-06 03:51:25 +0300 |
commit | 4c7b3f7fb7c8c66d669d107e717f9de41ef81e92 (patch) | |
tree | e6697bf07318d09b2273febb4229af01fed1583c /fs/gfs2/dir.c | |
parent | 92099f0c92270c8c7a79e6bc6e0312ad248ea331 (diff) | |
download | linux-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/dir.c')
-rw-r--r-- | fs/gfs2/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index 1a2afa88f8be..3a2a10d6d43d 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c @@ -868,7 +868,7 @@ static struct gfs2_leaf *new_leaf(struct inode *inode, struct buffer_head **pbh, struct gfs2_dirent *dent; struct timespec64 tv = current_time(inode); - error = gfs2_alloc_blocks(ip, &bn, &n, 0, NULL); + error = gfs2_alloc_blocks(ip, &bn, &n, 0); if (error) return NULL; bh = gfs2_meta_new(ip->i_gl, bn); |