]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gfs2: Remove unused fallocate_chunk argument
authorAndreas Gruenbacher <agruenba@redhat.com>
Sat, 23 May 2026 10:12:37 +0000 (12:12 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 29 May 2026 09:08:08 +0000 (11:08 +0200)
The mode argument of fallocate_chunk() became unused in commit
1885867b84d5 ("GFS2: Update i_size properly on fallocate"), so remove it.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c

index 9704f1ef6ad18385bce521410b45905956a88790..48ebda5ba808b68f826fc18cb0c360a7aa2c48b4 100644 (file)
@@ -1173,8 +1173,7 @@ out_unlock:
        return ret;
 }
 
-static int fallocate_chunk(struct inode *inode, loff_t offset, loff_t len,
-                          int mode)
+static int fallocate_chunk(struct inode *inode, loff_t offset, loff_t len)
 {
        struct super_block *sb = inode->i_sb;
        struct gfs2_inode *ip = GFS2_I(inode);
@@ -1336,7 +1335,7 @@ static long __gfs2_fallocate(struct file *file, int mode, loff_t offset, loff_t
                if (error)
                        goto out_trans_fail;
 
-               error = fallocate_chunk(inode, offset, max_bytes, mode);
+               error = fallocate_chunk(inode, offset, max_bytes);
                gfs2_trans_end(sdp);
 
                if (error)