From: Namjae Jeon <namjae.jeon@xxxxxxxxxxx> 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@xxxxxxxxxxx> Signed-off-by: Ashish Sangwan <a.sangwan@xxxxxxxxxxx> --- fs/ext4/extents.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index a64242f..8d45ef8 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -5461,6 +5461,11 @@ int ext4_collapse_range(struct inode *inode, loff_t offset, loff_t len) goto out_mutex; } + if (EXT4_SB(inode->i_sb)->s_cluster_ratio > 1) { + ret = -EOPNOTSUPP; + goto out_mutex; + } + truncate_pagecache_range(inode, ioffset, -1); /* Wait for existing dio to complete */ -- 1.7.11-rc0 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html