]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ext4: Fix uninit block group initialization with FLEX_BG
authorJose R. Santos <jrs@us.ibm.com>
Tue, 3 Jun 2008 18:07:29 +0000 (14:07 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 3 Jun 2008 18:07:29 +0000 (14:07 -0400)
commit0bf7e8379ce7e0159a2a6bd3d937f2f6ada79799
tree2009c826d8baadc1b704af1ae23ddf0b2118be5e
parent03cddb80ed2dacaf03c370d38bcc75f8303a03b8
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: Aneesh Kumar K.V <aneesh.kumar@inux.vnet.ibm.com>
Signed-off-by: Jose R. Santos <jrs@us.ibm.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/balloc.c