Skip to content
Commit 0bf7e837 authored by Jose R. Santos's avatar Jose R. Santos Committed by Theodore Ts'o
Browse files

ext4: Fix uninit block group initialization with FLEX_BG



With FLEX_BG block bitmaps, inode bitmaps and inode tables _MAY_ be
allocated outside the group.  So, when initializing an uninitialized
block bitmap, we need to check the location of this blocks before
setting the corresponding bits in the block bitmap of the newly
initialized group.  Also return the right number of free blocks when
counting the available free blocks in uninit group.

Tested-by: default avatarAneesh Kumar K.V <aneesh.kumar@inux.vnet.ibm.com>
Signed-off-by: default avatarJose R. Santos <jrs@us.ibm.com>
Signed-off-by: default avatarMingming Cao <cmm@us.ibm.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 03cddb80
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment