aboutsummaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorGravatar Zheng Liu <wenqing.lz@taobao.com> 2014-01-06 14:01:23 -0500
committerGravatar Theodore Ts'o <tytso@mit.edu> 2014-01-06 14:01:23 -0500
commit9cb00419faa7dd81e921328a71931d2b95ed5876 (patch)
treec481f167c67f882af680456c02b424e7b57ab251 /fs/ext4
parentext4: fix bigalloc regression (diff)
downloadlinux-9cb00419faa7dd81e921328a71931d2b95ed5876.tar.gz
linux-9cb00419faa7dd81e921328a71931d2b95ed5876.tar.bz2
linux-9cb00419faa7dd81e921328a71931d2b95ed5876.zip
ext4: enable punch hole for bigalloc
After applied this commit (d23142c6), ext4 has supported punch hole for a file system with bigalloc feature. But we forgot to enable it. This commit fixes it. Cc: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/inode.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 61d49ff22c81..90a4ea781cd4 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3501,11 +3501,6 @@ int ext4_punch_hole(struct inode *inode, loff_t offset, loff_t length)
if (!S_ISREG(inode->i_mode))
return -EOPNOTSUPP;
- if (EXT4_SB(sb)->s_cluster_ratio > 1) {
- /* TODO: Add support for bigalloc file systems */
- return -EOPNOTSUPP;
- }
-
trace_ext4_punch_hole(inode, offset, length);
/*