From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id 2AD3D6B0310 for ; Tue, 12 Sep 2017 02:05:02 -0400 (EDT) Received: by mail-pf0-f199.google.com with SMTP id x78so19045947pff.7 for ; Mon, 11 Sep 2017 23:05:02 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id l3sor4059495pld.39.2017.09.11.23.05.00 for (Google Transport Security); Mon, 11 Sep 2017 23:05:00 -0700 (PDT) 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 Message-ID: <20170912060456.GA703@jagdpanzerIV.localdomain> References: <1505183833-4739-1-git-send-email-minchan@kernel.org> <1505183833-4739-5-git-send-email-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1505183833-4739-5-git-send-email-minchan@kernel.org> Sender: owner-linux-mm@kvack.org List-ID: To: Minchan Kim Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team , Ilya Dryomov , Sergey Senozhatsky , Dan Williams , Ross Zwisler , Hugh Dickins 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org