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)
commit7444a072c387a93ebee7066e8aee776954ab0e41
tree4f8dfad9045bc662071717b477958efb2a43d328
parent8974fec7d72e3e02752fe0f27b4c3719c78d9a15
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