]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: protect bb_first_free in ext4_trim_all_free() with group lock
authorLukas Czerner <lczerner@redhat.com>
Tue, 24 May 2011 22:28:07 +0000 (18:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 24 May 2011 22:28:07 +0000 (18:28 -0400)
commit538f83bdadc3cecd8340867786e8c04a53164cde
tree10d4db959544884e6612ea329920a2cf73a6f0b6
parent1888952086b68c82980aed840a8d4ad6538cfa6a
ext4: protect bb_first_free in ext4_trim_all_free() with group lock

We should protect reading bd_info->bb_first_free with the group lock
because otherwise we might miss some free blocks. This is not a big deal
at all, but the change to do right thing is really simple, so lets do
that.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c