summaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2014-04-12 15:47:00 +0200
committerTheodore Ts'o <tytso@mit.edu>2014-04-12 15:47:00 +0200
commit9ef06cec7c96f6bf59f1dd8b64b9645820099051 (patch)
tree300b9868f29dce82cf42ef9b39874fe07d76783b /fs/ext4/extents.c
parentext4: move ext4_update_i_disksize() into mpage_map_and_submit_extent() (diff)
downloadlinux-9ef06cec7c96f6bf59f1dd8b64b9645820099051.tar.xz
linux-9ef06cec7c96f6bf59f1dd8b64b9645820099051.zip
ext4: remove unnecessary check for APPEND and IMMUTABLE
All the checks IS_APPEND and IS_IMMUTABLE for the fallocate operation on the inode are done in vfs. No need to do this again in ext4. Remove it. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index be1e56cbbf32..ed4ec48239b6 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -5398,12 +5398,6 @@ int ext4_collapse_range(struct inode *inode, loff_t offset, loff_t len)
/* Take mutex lock */
mutex_lock(&inode->i_mutex);
- /* It's not possible punch hole on append only file */
- if (IS_APPEND(inode) || IS_IMMUTABLE(inode)) {
- ret = -EPERM;
- goto out_mutex;
- }
-
if (IS_SWAPFILE(inode)) {
ret = -ETXTBSY;
goto out_mutex;