ext4: fix COLLAPSE RANGE test for bigalloc file systems
authorNamjae Jeon <namjae.jeon@samsung.com>
Tue, 29 Jul 2014 14:45:31 +0000 (10:45 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 29 Jul 2014 14:45:31 +0000 (10:45 -0400)
Blocks in collapse range should be collapsed per cluster unit when
bigalloc is enable. If bigalloc is not enable, EXT4_CLUSTER_SIZE will
be same with EXT4_BLOCK_SIZE.

With this bug fixed, patch enables COLLAPSE_RANGE for bigalloc, which
fixes a large number of xfstest failures which use fsx.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c

Simple merge