aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTahsin Erdogan <tahsin@google.com>2017-08-05 22:15:45 -0400
committerMoyster <oysterized@gmail.com>2017-08-12 12:17:21 +0200
commit282a3b6b34e31afaa59082c981166e13f2f7eb33 (patch)
treeaded0c3084b1207833d14543de43b5f7419afda0
parenta5797252faf69fa39a62fb0ac7cce5a39007b0bc (diff)
ext4: remove unused mode parameter
ext4_alloc_file_blocks() does not use its mode parameter. Remove it. Signed-off-by: Tahsin Erdogan <tahsin@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--fs/ext4/extents.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index ed15d254b..7b782b807 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -4674,7 +4674,7 @@ retry:
static int ext4_alloc_file_blocks(struct file *file, ext4_lblk_t offset,
ext4_lblk_t len, loff_t new_size,
- int flags, int mode)
+ int flags)
{
struct inode *inode = file_inode(file);
handle_t *handle;
@@ -4847,7 +4847,7 @@ static long ext4_zero_range(struct file *file, loff_t offset,
inode_dio_wait(inode);
ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size,
- flags, mode);
+ flags);
if (ret)
goto out_dio;
/*
@@ -4988,7 +4988,7 @@ long ext4_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
}
ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size,
- flags, mode);
+ flags);
if (ret)
goto out;