[PATCH] handle oom in tmpfs
From: Hugh Dickins <hugh@veritas.com> move_from_swap_cache and add_to_page_cache_lru are using GFP_ATOMIC, which can easily fail in an intermittent way. Rude if shmem_getpage then fails with -ENOMEM: use blk_congestion_wait() to let kswapd in, and repeat.
Showing
Please register or sign in to comment