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=-12.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 5961CC2D0E4 for ; Thu, 12 Nov 2020 21:28:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9CB772224E for ; Thu, 12 Nov 2020 21:27:15 +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="nVlL3wYe" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9CB772224E 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 E393B6B0078; Thu, 12 Nov 2020 16:26:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DBBDB6B007D; Thu, 12 Nov 2020 16:26:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C3A086B007E; Thu, 12 Nov 2020 16:26:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0154.hostedemail.com [216.40.44.154]) by kanga.kvack.org (Postfix) with ESMTP id 8DA966B0078 for ; Thu, 12 Nov 2020 16:26:57 -0500 (EST) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 34D09180AD802 for ; Thu, 12 Nov 2020 21:26:57 +0000 (UTC) X-FDA: 77477051274.23.patch64_010e2c827309 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin23.hostedemail.com (Postfix) with ESMTP id 1636537606 for ; Thu, 12 Nov 2020 21:26:57 +0000 (UTC) X-HE-Tag: patch64_010e2c827309 X-Filterd-Recvd-Size: 3110 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf17.hostedemail.com (Postfix) with ESMTP for ; Thu, 12 Nov 2020 21:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=ah+jL08Aq18bIod4sv8CxA+v//JQ2UBcaOuSobFGpKI=; b=nVlL3wYePUt8Dxl8hv5Jy858mR KfnUJXQAbqmuNRSOc2Wn1AL/zijiJKxUK4dm9ehGYXWUcetiIjm4gTqS2HEzgKnCl/GKm4IgpH9fZ +qth5eo3uHiuKLv478z3B786bFIlbAuYz3Ti3LW9VSMVQVjfTLXNto0EoGyK44+Z6RMsSVfN6WKVA WR+2spWkhua55IIm/WPaNh9lRiepVEyh7G2MogS0TpDH0ZBIAz6Jgd17cnQ48PffXW5zan7NwFwxV IEn0Aen2RuIRXxq91fFNu15ExLsXws8sRBG+lqhZKSyF68oa3djk02RWqPmNDMXurkLWSMDWvHQYY i3tm/QKA==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdK7B-0007GR-IN; Thu, 12 Nov 2020 21:26:45 +0000 From: "Matthew Wilcox (Oracle)" To: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Cc: "Matthew Wilcox (Oracle)" , akpm@linux-foundation.org, hughd@google.com, hch@lst.de, hannes@cmpxchg.org, yang.shi@linux.alibaba.com, dchinner@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH v4 05/16] mm/filemap: Rename find_get_entry to mapping_get_entry Date: Thu, 12 Nov 2020 21:26:30 +0000 Message-Id: <20201112212641.27837-6-willy@infradead.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20201112212641.27837-1-willy@infradead.org> References: <20201112212641.27837-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: find_get_entry doesn't "find" anything. It returns the entry at a particular index. Signed-off-by: Matthew Wilcox (Oracle) --- mm/filemap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 01603f021740..53073281f027 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1663,7 +1663,7 @@ pgoff_t page_cache_prev_miss(struct address_space *= mapping, EXPORT_SYMBOL(page_cache_prev_miss); =20 /* - * find_get_entry - find and get a page cache entry + * mapping_get_entry - Get a page cache entry. * @mapping: the address_space to search * @index: The page cache index. * @@ -1675,7 +1675,8 @@ EXPORT_SYMBOL(page_cache_prev_miss); * * Return: The head page or shadow entry, %NULL if nothing is found. */ -static struct page *find_get_entry(struct address_space *mapping, pgoff_= t index) +static struct page *mapping_get_entry(struct address_space *mapping, + pgoff_t index) { XA_STATE(xas, &mapping->i_pages, index); struct page *page; @@ -1751,7 +1752,7 @@ struct page *pagecache_get_page(struct address_spac= e *mapping, pgoff_t index, struct page *page; =20 repeat: - page =3D find_get_entry(mapping, index); + page =3D mapping_get_entry(mapping, index); if (xa_is_value(page)) { if (fgp_flags & FGP_ENTRY) return page; --=20 2.28.0