• Andrew Morton's avatar
    [PATCH] handle oom in tmpfs · 70fa2a42
    Andrew Morton authored
    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.
    70fa2a42
shmem.c 49 KB