]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: fix block bitmap validation when bigalloc, ^flex_bg
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 12 May 2014 14:17:55 +0000 (10:17 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 12 May 2014 14:17:55 +0000 (10:17 -0400)
commit5d2d1fbf8be5c5a67d3beac280300c95a1d5d793
tree6ffbdb5efe9394a855716435562495c3b6065011
parent74ce89026fd455db0f990f9134bdc1c742bccbd5
ext4: fix block bitmap validation when bigalloc, ^flex_bg

On a bigalloc,^flex_bg filesystem, the ext4_valid_block_bitmap
function fails to convert from blocks to clusters when spot-checking
the validity of the bitmap block that we've just read from disk.  This
causes ext4 to think that the bitmap is garbage, which results in the
block group being taken offline when it's not necessary.  Add in the
necessary EXT4_B2C() calls to perform the conversions.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/balloc.c