[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170912060456.GA703@jagdpanzerIV.localdomain>
Date: Tue, 12 Sep 2017 15:04:56 +0900
From: Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>
To: Minchan Kim <minchan@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, kernel-team <kernel-team@....com>,
Ilya Dryomov <idryomov@...il.com>,
Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
Dan Williams <dan.j.williams@...el.com>,
Ross Zwisler <ross.zwisler@...ux.intel.com>,
Hugh Dickins <hughd@...gle.com>
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
Powered by blists - more mailing lists