]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ext4: fix ext4_init_block_bitmap() for metablock block group
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 11 Jul 2008 23:27:31 +0000 (19:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 11 Jul 2008 23:27:31 +0000 (19:27 -0400)
commit6afd670713c9e7d5c5550e379dfedca8ffab4c90
tree3cf037d9d0f91bef6cebd77523da71d68bb1a7f8
parent7477827f6686ce29b6216d9eb26f6b9027742dcc
ext4: fix ext4_init_block_bitmap() for metablock block group

When meta_bg feature is enabled and s_first_meta_bg != 0,
ext4_init_block_bitmap() miscalculates the number of block used by
the group descriptor table (0 or 1 for metablock block group)

This patch fixes this by using ext4_bg_num_gdb()

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Stephen Tweedie <sct@redhat.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Acked-by: Andreas Dilger <adilger@sun.com>
fs/ext4/balloc.c