]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ext4: Add blocks added during resize to bitmap
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 6 Jan 2009 02:36:02 +0000 (21:36 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Jan 2009 02:36:02 +0000 (21:36 -0500)
commite21675d4b63975d09eb75c443c48ebe663d23e18
tree73ace586265c977c2f0b41bbe2ec0b462809aa58
parent3a06d778dfeda7eaeeb79bfa49cf97f2aae132b4
ext4: Add blocks added during resize to bitmap

With this change new blocks added during resize
are marked as free in the block bitmap and the
group is flagged with EXT4_GROUP_INFO_NEED_INIT_BIT
flag.  This makes sure when mballoc tries to allocate
blocks from the new group we would reload the
buddy information using the bitmap present in the disk.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/balloc.c
fs/ext4/ext4.h
fs/ext4/resize.c