Skip to content

Commit

Permalink
ext4: enable punch hole for bigalloc
Browse files Browse the repository at this point in the history
After applied this commit (d23142c), 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>
  • Loading branch information
Zheng Liu authored and Theodore Ts'o committed Jan 6, 2014
1 parent d0abafa commit 9cb0041
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/ext4/inode.c
Original file line number Diff line number Diff line change
@@ -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);

/*

0 comments on commit 9cb0041

Please sign in to comment.