diff options
author | Ashish Sangwan <a.sangwan@samsung.com> | 2013-07-01 12:12:38 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-07-01 12:12:38 (GMT) |
commit | aeb2817a4ea99f62532adf3377be3b282d3bda12 (patch) | |
tree | 7e51c67923215eb8e6596d2052d2b8ad261c1b3c /fs/ext4/extents.c | |
parent | c4932dbe63dae2d23b4f596caa5d286ebfe042cf (diff) | |
download | linux-fsl-qoriq-aeb2817a4ea99f62532adf3377be3b282d3bda12.tar.xz |
ext4: pass inode pointer instead of file pointer to punch hole
No need to pass file pointer when we can directly pass inode pointer.
Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 51e4168..937593e 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -4463,7 +4463,7 @@ long ext4_fallocate(struct file *file, int mode, loff_t offset, loff_t len) return -EOPNOTSUPP; if (mode & FALLOC_FL_PUNCH_HOLE) - return ext4_punch_hole(file, offset, len); + return ext4_punch_hole(inode, offset, len); ret = ext4_convert_inline_data(inode); if (ret) |