Skip to content

Commit 9cb0041

Browse files
gnehzuiltytso
authored andcommitted
ext4: enable punch hole for bigalloc
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>
1 parent d0abafa commit 9cb0041

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎fs/ext4/inode.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3501,11 +3501,6 @@ int ext4_punch_hole(struct inode *inode, loff_t offset, loff_t length)
35013501
if (!S_ISREG(inode->i_mode))
35023502
return -EOPNOTSUPP;
35033503

3504-
if (EXT4_SB(sb)->s_cluster_ratio > 1) {
3505-
/* TODO: Add support for bigalloc file systems */
3506-
return -EOPNOTSUPP;
3507-
}
3508-
35093504
trace_ext4_punch_hole(inode, offset, length);
35103505

35113506
/*

0 commit comments

Comments
 (0)