Skip to content

Commit

Permalink
ext4: disable COLLAPSE_RANGE for bigalloc
Browse files Browse the repository at this point in the history
Once COLLAPSE RANGE is be disable for ext4 with bigalloc feature till finding
root-cause of problem. It will be enable with fixing that regression of
xfstest(generic 075 and 091) again.

Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Ashish Sangwan <[email protected]>
Reviewed-by: Lukas Czerner <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
  • Loading branch information
namjaejeon authored and tytso committed Apr 19, 2014
1 parent a8680e0 commit 0a04b24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -5406,6 +5406,9 @@ int ext4_collapse_range(struct inode *inode, loff_t offset, loff_t len)
if (!S_ISREG(inode->i_mode))
return -EINVAL;

if (EXT4_SB(inode->i_sb)->s_cluster_ratio > 1)
return -EOPNOTSUPP;

trace_ext4_collapse_range(inode, offset, len);

punch_start = offset >> EXT4_BLOCK_SIZE_BITS(sb);
Expand Down

0 comments on commit 0a04b24

Please sign in to comment.