diff options
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index e0a8425ff74d..230ca74c4841 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -4652,7 +4652,7 @@ retry: | |||
4652 | 4652 | ||
4653 | static int ext4_alloc_file_blocks(struct file *file, ext4_lblk_t offset, | 4653 | static int ext4_alloc_file_blocks(struct file *file, ext4_lblk_t offset, |
4654 | ext4_lblk_t len, loff_t new_size, | 4654 | ext4_lblk_t len, loff_t new_size, |
4655 | int flags, int mode) | 4655 | int flags) |
4656 | { | 4656 | { |
4657 | struct inode *inode = file_inode(file); | 4657 | struct inode *inode = file_inode(file); |
4658 | handle_t *handle; | 4658 | handle_t *handle; |
@@ -4815,7 +4815,7 @@ static long ext4_zero_range(struct file *file, loff_t offset, | |||
4815 | round_down(offset, 1 << blkbits) >> blkbits, | 4815 | round_down(offset, 1 << blkbits) >> blkbits, |
4816 | (round_up((offset + len), 1 << blkbits) - | 4816 | (round_up((offset + len), 1 << blkbits) - |
4817 | round_down(offset, 1 << blkbits)) >> blkbits, | 4817 | round_down(offset, 1 << blkbits)) >> blkbits, |
4818 | new_size, flags, mode); | 4818 | new_size, flags); |
4819 | if (ret) | 4819 | if (ret) |
4820 | goto out_dio; | 4820 | goto out_dio; |
4821 | 4821 | ||
@@ -4841,7 +4841,7 @@ static long ext4_zero_range(struct file *file, loff_t offset, | |||
4841 | inode->i_mtime = inode->i_ctime = current_time(inode); | 4841 | inode->i_mtime = inode->i_ctime = current_time(inode); |
4842 | 4842 | ||
4843 | ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, | 4843 | ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, |
4844 | flags, mode); | 4844 | flags); |
4845 | up_write(&EXT4_I(inode)->i_mmap_sem); | 4845 | up_write(&EXT4_I(inode)->i_mmap_sem); |
4846 | if (ret) | 4846 | if (ret) |
4847 | goto out_dio; | 4847 | goto out_dio; |
@@ -4976,8 +4976,7 @@ long ext4_fallocate(struct file *file, int mode, loff_t offset, loff_t len) | |||
4976 | ext4_inode_block_unlocked_dio(inode); | 4976 | ext4_inode_block_unlocked_dio(inode); |
4977 | inode_dio_wait(inode); | 4977 | inode_dio_wait(inode); |
4978 | 4978 | ||
4979 | ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, | 4979 | ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, flags); |
4980 | flags, mode); | ||
4981 | ext4_inode_resume_unlocked_dio(inode); | 4980 | ext4_inode_resume_unlocked_dio(inode); |
4982 | if (ret) | 4981 | if (ret) |
4983 | goto out; | 4982 | goto out; |