]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: replace open coded nofail allocation in ext4_free_blocks()
authorMichal Hocko <mhocko@suse.cz>
Sun, 5 Jul 2015 16:33:44 +0000 (12:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 5 Jul 2015 16:33:44 +0000 (12:33 -0400)
commit03cfa4d8e872eecd115fc3333fb793b93041f8b7
tree4f8dfad9045bc662071717b477958efb2a43d328
parent2ac872a978cbb11fdd999e30fc92fd9677b4991c
ext4: replace open coded nofail allocation in ext4_free_blocks()

ext4_free_blocks is looping around the allocation request and mimics
__GFP_NOFAIL behavior without any allocation fallback strategy. Let's
remove the open coded loop and replace it with __GFP_NOFAIL. Without the
flag the allocator has no way to find out never-fail requirement and
cannot help in any way.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/mballoc.c