summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2014-04-19 16:38:21 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-04-19 16:38:21 -0400
commit0a04b248532b358b27a8da050642da6f5f304b03 (patch)
treeab6a0931c262f2fc8e36cc83b39614c0fd815e18 /fs
parenta8680e0d5efd46aa54d7085e5b4a268f726922c7 (diff)
downloadlinux-0a04b248532b358b27a8da050642da6f5f304b03.tar.gz
linux-0a04b248532b358b27a8da050642da6f5f304b03.tar.bz2
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.c3
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);