Messages in this thread | | | Date | Tue, 12 Sep 2017 15:04:56 +0900 | From | Sergey Senozhatsky <> | Subject | Re: [PATCH 5/5] mm:swap: skip swapcache for swapin of synchronous device |
| |
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
| |