diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2014-04-19 22:38:21 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-04-19 22:38:21 +0200 |
commit | 0a04b248532b358b27a8da050642da6f5f304b03 (patch) | |
tree | ab6a0931c262f2fc8e36cc83b39614c0fd815e18 /fs | |
parent | ext4: fix COLLAPSE_RANGE failure with 1KB block size (diff) | |
download | linux-0a04b248532b358b27a8da050642da6f5f304b03.tar.xz linux-0a04b248532b358b27a8da050642da6f5f304b03.zip |
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')
-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) 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); |