From: Zheng Liu Date: Fri, 20 Dec 2013 14:30:35 +0000 (-0500) Subject: ext4: enable punch hole for bigalloc X-Git-Tag: next-20140106~86^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=73d11f5c540f8419fd381e7d9ad8a0738b8154d2;p=karo-tx-linux.git 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 Signed-off-by: Zheng Liu Signed-off-by: "Theodore Ts'o" --- 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); /*