Re: [PATCH 5/5] mm:swap: skip swapcache for swapin of synchronous device

From: Minchan Kim
Date: Tue Sep 12 2017 - 02:31:10 EST


On Tue, Sep 12, 2017 at 03:04:56PM +0900, Sergey Senozhatsky wrote:
> 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?

Several modifications during development finally makes me remove the NULL check.
Thanks for catching it as well as style fix-up of other patch, Sergey.