On (09/12/17 11:37), Minchan Kim wrote:
> +             } else {
> +                     /* skip swapcache */
> +                     page = alloc_page_vma(GFP_HIGHUSER_MOVABLE, vma, 
> vmf->address);

what if alloc_page_vma() fails?

> +                     __SetPageLocked(page);
> +                     __SetPageSwapBacked(page);
> +                     set_page_private(page, entry.val);
> +                     lru_cache_add_anon(page);
> +                     swap_readpage(page, true);
> +             }

        -ss

Reply via email to