]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: Don't allow new groups to be added during block allocation
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 17 Feb 2009 15:32:35 +0000 (10:32 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 20 Feb 2009 22:40:27 +0000 (14:40 -0800)
commitf13976d0527d6bc42eb4dfac95fc6d173a93ce21
tree28563400b1e357b59174c17c7532b3453927b7f3
parentf046a22218f439e98cc82ed14e0525e79a33a50c
ext4: Don't allow new groups to be added during block allocation

(cherry picked from commit 8556e8f3b6c4c11601ce1e9ea8090a6d8bd5daae)

After we mark the blocks in the buddy cache as allocated,
we need to ensure that we don't reinit the buddy cache until
the block bitmap is updated.  This commit achieves this by holding
the group_info alloc_semaphore till ext4_mb_release_context

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/mballoc.c
fs/ext4/mballoc.h