]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't use blocks freed but not yet committed in buddy cache init
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 6 Jan 2009 02:36:55 +0000 (21:36 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Jan 2009 02:36:55 +0000 (21:36 -0500)
commit1c2c6195eb7206ba59fc8bc4f899facec8f8bef3
tree19c7dd8cc56864445dd5fbe3fd2b941d1966492d
parent19eb19c10395c299196f94416cb7d3f4e4b422a8
ext4: don't use blocks freed but not yet committed in buddy cache init

When we generate buddy cache (especially during resize) we need to
make sure we don't use the blocks freed but not yet comitted.  This
makes sure we have the right value of free blocks count in the group
info and also in the bitmap.  This also ensures the ordered mode
consistency

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/mballoc.c