diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2014-04-19 16:38:21 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-04-19 16:38:21 -0400 |
commit | 0a04b248532b358b27a8da050642da6f5f304b03 (patch) | |
tree | ab6a0931c262f2fc8e36cc83b39614c0fd815e18 /fs/ext4 | |
parent | a8680e0d5efd46aa54d7085e5b4a268f726922c7 (diff) |
ext4: disable COLLAPSE_RANGE for bigalloc
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 <namjae.jeon@samsung.com>
Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/extents.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index d6bca2a1debe..01b0c208f625 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -5406,6 +5406,9 @@ int ext4_collapse_range(struct inode *inode, loff_t offset, loff_t len) | |||
5406 | if (!S_ISREG(inode->i_mode)) | 5406 | if (!S_ISREG(inode->i_mode)) |
5407 | return -EINVAL; | 5407 | return -EINVAL; |
5408 | 5408 | ||
5409 | if (EXT4_SB(inode->i_sb)->s_cluster_ratio > 1) | ||
5410 | return -EOPNOTSUPP; | ||
5411 | |||
5409 | trace_ext4_collapse_range(inode, offset, len); | 5412 | trace_ext4_collapse_range(inode, offset, len); |
5410 | 5413 | ||
5411 | punch_start = offset >> EXT4_BLOCK_SIZE_BITS(sb); | 5414 | punch_start = offset >> EXT4_BLOCK_SIZE_BITS(sb); |