]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit117918bdb140f3485aa550e6b128469a27c26952
tree9e3e1c7ab516d9646e00bd3954c501dd9a0ac0d2
parent053c5c673e2a0319ca3a20f68e52a7c7ac239688
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