]> pilppa.com Git - linux-2.6-omap-h63xx.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, 6 Jan 2009 02:46:55 +0000 (21:46 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Jan 2009 02:46:55 +0000 (21:46 -0500)
commit8556e8f3b6c4c11601ce1e9ea8090a6d8bd5daae
tree8a0da99a4781cbde8c050d7cbcd85f31fd54e894
parent648f5879f5892dddd3ba71cd0d285599f40f2512
ext4: Don't allow new groups to be added during block allocation

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>
Cc: stable@kernel.org
fs/ext4/mballoc.c
fs/ext4/mballoc.h