summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2026-05-23 12:12:37 +0200
committerAndreas Gruenbacher <agruenba@redhat.com>2026-05-29 11:08:08 +0200
commit70008e22ab3fd619fb2a50dcfa80b9dfa26c5d8a (patch)
tree253fee63bb1478cf0e9f9ba70f5e2507f71fff42
parentf9c9ec2c319f843b70ecdf939d48b52d189bc081 (diff)
gfs2: Remove unused fallocate_chunk argument
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>
-rw-r--r--fs/gfs2/file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index 9704f1ef6ad1..48ebda5ba808 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -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)