ext4: use __GFP_NOFAIL in ext4_free_blocks()
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Sun, 13 Mar 2016 21:29:06 +0000 (17:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Mar 2016 21:29:06 +0000 (17:29 -0400)
commitadb7ef600cc9d9d15ecc934cc26af5c1379777df
tree9e3e1c7ab516d9646e00bd3954c501dd9a0ac0d2
parenta2821e34df141ac6019552618b57fa09227ff0dd
ext4: use __GFP_NOFAIL in ext4_free_blocks()

This might be unexpected but pages allocated for sbi->s_buddy_cache are
charged to current memory cgroup. So, GFP_NOFS allocation could fail if
current task has been killed by OOM or if current memory cgroup has no
free memory left. Block allocator cannot handle such failures here yet.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c