commit | e73a347b7723757bb5fb5c502814dc205a7f496d | [log] [tgz] |
---|---|---|
author | Amir Goldstein <amir73il@users.sf.net> | Mon May 09 21:40:01 2011 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon May 09 21:40:01 2011 -0400 |
tree | d65cf4e0fe070c46bdd4a6748bab549a11e0ef0b | |
parent | 2cd05cc39347ddd8994b7f63ab5cb886f042477f [diff] |
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>