diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2009-09-09 23:34:50 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-09-09 23:34:50 -0400 |
commit | f41c0750538667b87a19c93952e5d42fcc069bd7 (patch) | |
tree | 042076950064d1201e7e408aba0e96ccbd7e00e2 /fs/ext4/mballoc.h | |
parent | b6a758ec3af3ec236dbfdcf6a06b84ac8f94957e (diff) | |
download | linux-f41c0750538667b87a19c93952e5d42fcc069bd7.tar.bz2 |
ext4: check for need init flag in ext4_mb_load_buddy
We should check for need init flag with the group's alloc_sem held, to
make sure while we are loading the buddy cache and holding a reference
to it, a file system resize can't add new blocks to same group.
The patch also drops the need init flag check in
ext4_mb_regular_allocator() because doing the check without holding
alloc_sem is racy.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'fs/ext4/mballoc.h')
0 files changed, 0 insertions, 0 deletions