]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ext4: enable punch hole for bigalloc
authorZheng Liu <wenqing.lz@taobao.com>
Mon, 6 Jan 2014 19:01:23 +0000 (14:01 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 6 Jan 2014 19:01:23 +0000 (14:01 -0500)
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>
fs/ext4/inode.c

index 61d49ff22c81f844cb8bc6324ad3aa70d649fb7b..90a4ea781cd43f26ba1686ba3a6195956a4b1fbe 100644 (file)
@@ -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);
 
        /*