On Thu, May 01, 2014 at 04:17:47PM -0700, Darrick J. Wong wrote:
If EXT4FS_DEBUG is defined, ext4_validate_block_bitmap is called via
ext4_count_free_clusters before sb->s_group_info is set up. When this
happens, the kernel crashes because group info hasn't been loaded.
Forego marking the group corrupt for now; not setting BH_Verified
means we'll revisit the bitmap if something went wrong.
Signed-off-by: Darrick J. Wong <redacted>
This shouldn't be necessary that we have this in the ext4 tree, right?
commit 007649375f6af242d5b1df2c15996949714303ba
Author: Azat Khuzhin [off-list ref]
Date: Mon Apr 7 10:54:20 2014 -0400
ext4: initialize multi-block allocator before checking block descriptors
With EXT4FS_DEBUG ext4_count_free_clusters() will call
ext4_read_block_bitmap() without s_group_info initialized, so we need to
initialize multi-block allocator before.
...
- Ted