]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: implement ext4_add_groupblocks() by freeing blocks
authorAmir Goldstein <amir73il@users.sf.net>
Tue, 10 May 2011 01:40:01 +0000 (21:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 10 May 2011 01:40:01 +0000 (21:40 -0400)
commit7be4956178a7f1c78706fa29110d323b24e1d7d2
treed65cf4e0fe070c46bdd4a6748bab549a11e0ef0b
parentec899049f0eecbb57e62e4f9bd67b3206f36e5e6
ext4: implement ext4_add_groupblocks() by freeing blocks

The old imlementation used to take grp->alloc_sem and set the
GROUP_NEED_INIT flag, so that the buddy cache would be reloaded.

The new implementation updates the buddy cache by freeing the added
blocks and making them available for use, so there is no need to
reload the buddy cache and there is no need to take grp->alloc_sem.

Signed-off-by: Amir Goldstein <amir73il@users.sf.net>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c