Whamcloud - gitweb
LU-7304 ldiskfs: fix bug when bigalloc is enabled 32/16832/3
authorWang Shilong <wshilong@ddn.com>
Tue, 13 Oct 2015 00:28:29 +0000 (20:28 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 Nov 2015 15:11:31 +0000 (15:11 +0000)
commit26adc2e13a877507b483b2d3c3e873fbd13d2596
tree84724be0c92340342164d775fc09d00aaf85e8f0
parent049252c375a2ceee41f255ab445334af2868519e
LU-7304 ldiskfs: fix bug when bigalloc is enabled

See following error when enabled bigalloc feature
for ldiskfs rhel7:

LDISKFS-fs error (device sdb):
ldiskfs_mb_check_ondisk_bitmap:3611: comm mkdir:
 on-disk bitmap for group 8corrupted: 0 blocks free in
 bitmap, 32768 - in gd

Fixed to use EXT4_CLUSTERS_PER_GROUP, otherwise,
we will get wrong value and fail to check, which
make FS become RO..

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: I7f61918918e6f4e2f372929181b704b0648dcbca
Reviewed-on: http://review.whamcloud.com/16832
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
ldiskfs/kernel_patches/patches/rhel7/ext4-mballoc-extra-checks.patch
ldiskfs/kernel_patches/patches/sles12/ext4-prealloc.patch