ext4: remove unused mode parameter
authorTahsin Erdogan <tahsin@google.com>
Sun, 6 Aug 2017 02:15:45 +0000 (22:15 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Aug 2017 02:15:45 +0000 (22:15 -0400)
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>
fs/ext4/extents.c

index e0a8425ff74da9e60427f09f5525e1bc85952d51..230ca74c48415a3afeebdbf98d27e9fdd241b1eb 100644 (file)
@@ -4652,7 +4652,7 @@ retry:
 
 static int ext4_alloc_file_blocks(struct file *file, ext4_lblk_t offset,
                                  ext4_lblk_t len, loff_t new_size,
 
 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;
 {
        struct inode *inode = file_inode(file);
        handle_t *handle;
@@ -4815,7 +4815,7 @@ static long ext4_zero_range(struct file *file, loff_t offset,
                                round_down(offset, 1 << blkbits) >> blkbits,
                                (round_up((offset + len), 1 << blkbits) -
                                 round_down(offset, 1 << blkbits)) >> blkbits,
                                round_down(offset, 1 << blkbits) >> blkbits,
                                (round_up((offset + len), 1 << blkbits) -
                                 round_down(offset, 1 << blkbits)) >> blkbits,
-                               new_size, flags, mode);
+                               new_size, flags);
                if (ret)
                        goto out_dio;
 
                if (ret)
                        goto out_dio;
 
@@ -4841,7 +4841,7 @@ static long ext4_zero_range(struct file *file, loff_t offset,
                inode->i_mtime = inode->i_ctime = current_time(inode);
 
                ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size,
                inode->i_mtime = inode->i_ctime = current_time(inode);
 
                ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size,
-                                            flags, mode);
+                                            flags);
                up_write(&EXT4_I(inode)->i_mmap_sem);
                if (ret)
                        goto out_dio;
                up_write(&EXT4_I(inode)->i_mmap_sem);
                if (ret)
                        goto out_dio;
@@ -4976,8 +4976,7 @@ long ext4_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
        ext4_inode_block_unlocked_dio(inode);
        inode_dio_wait(inode);
 
        ext4_inode_block_unlocked_dio(inode);
        inode_dio_wait(inode);
 
-       ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size,
-                                    flags, mode);
+       ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, flags);
        ext4_inode_resume_unlocked_dio(inode);
        if (ret)
                goto out;
        ext4_inode_resume_unlocked_dio(inode);
        if (ret)
                goto out;