]> 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)
commit241ba0e26930725d9ad7fcca224e1a5aadd222ce
tree4f8dfad9045bc662071717b477958efb2a43d328
parentca21e72dc2ae12c1f38009a2bdbec9ec3dd4af70
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