From: Jose R. Santos Date: Tue, 3 Jun 2008 18:07:29 +0000 (-0400) Subject: ext4: Fix uninit block group initialization with FLEX_BG X-Git-Tag: v2.6.26-rc6~29^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bf7e8379ce7e0159a2a6bd3d937f2f6ada79799;p=pandora-kernel.git 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 Signed-off-by: Jose R. Santos Signed-off-by: Mingming Cao Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed