From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD247C4727C for ; Tue, 29 Sep 2020 18:36:58 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E3ABE2074A for ; Tue, 29 Sep 2020 18:36:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="OpJfVjna" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E3ABE2074A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5BC1B6B005C; Tue, 29 Sep 2020 14:36:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 56BEA6B005D; Tue, 29 Sep 2020 14:36:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 481EF6B0062; Tue, 29 Sep 2020 14:36:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0089.hostedemail.com [216.40.44.89]) by kanga.kvack.org (Postfix) with ESMTP id 32DD46B005C for ; Tue, 29 Sep 2020 14:36:57 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id F24198249980 for ; Tue, 29 Sep 2020 18:36:56 +0000 (UTC) X-FDA: 77316955632.24.coal38_4f167432718c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id D940F1A4A0 for ; Tue, 29 Sep 2020 18:36:56 +0000 (UTC) X-HE-Tag: coal38_4f167432718c X-Filterd-Recvd-Size: 2542 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf35.hostedemail.com (Postfix) with ESMTP for ; Tue, 29 Sep 2020 18:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=K+ua4ilxGZY+R7uCpvZH1pW8+jQPHb2dEUKGY/Z2ut4=; b=OpJfVjna6FTnFwvjsJf91qM8om Fg9/rlI59FkU1b8pXl6Pnu+PufkAHaDE2HPEsJ2WxXgZ1+0cS0ESw+huZVlaFHuipdGaOoXV7HbmV MNtg49FiPrfZSDv8pOtQ9Dn9Mxt/n4DWgSlRaLWp32jSjJpAVixjQD+8YiBogTnGB1VV82PtRIt89 sFuAmSNkomv8NSH6P+NZbjq74WAAPxgM5b0CP5kQnCEu9Krq2YunC5pW7+c86Cvu6/gJas1MM7KVF gNc7w7WvDUvYwuKpQaOiOWd0QfLDtNnO4e/fJE9UB/iGf5xFZazg7XjVHDXIr1uljx4I+MiZJYsCO uNSDus8g==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNKUc-0003aM-BC; Tue, 29 Sep 2020 18:36:50 +0000 Date: Tue, 29 Sep 2020 19:36:50 +0100 From: Matthew Wilcox To: Jan Kara Cc: linux-mm@kvack.org, Andrew Morton , Hugh Dickins , William Kucharski , Johannes Weiner , Yang Shi , Dave Chinner , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 02/12] mm/shmem: Use pagevec_lookup in shmem_unlock_mapping Message-ID: <20200929183650.GJ20115@casper.infradead.org> References: <20200914130042.11442-1-willy@infradead.org> <20200914130042.11442-3-willy@infradead.org> <20200929082828.GB10896@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200929082828.GB10896@quack2.suse.cz> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Sep 29, 2020 at 10:28:28AM +0200, Jan Kara wrote: > On Mon 14-09-20 14:00:32, Matthew Wilcox (Oracle) wrote: > > The comment shows that the reason for using find_get_entries() is now > > stale; find_get_pages() will not return 0 if it hits a consecutive run > > of swap entries, and I don't believe it has since 2011. pagevec_lookup() > > is a simpler function to use than find_get_pages(), so use it instead. > > > > Signed-off-by: Matthew Wilcox (Oracle) > > Looks good to me. BTW, I think I've already reviewed this... You can add: > > Reviewed-by: Jan Kara So you did! My apologies for missing that.