gfs2: Remove unused fallocate_chunk argument

The mode argument of fallocate_chunk() became unused in commit
1885867b84 ("GFS2: Update i_size properly on fallocate"), so remove it.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
Andreas Gruenbacher 2026-05-23 12:12:37 +02:00
parent f9c9ec2c31
commit 70008e22ab

View File

@ -1173,8 +1173,7 @@ static ssize_t gfs2_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
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)