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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 44C53C433E0 for ; Fri, 26 Feb 2021 01:15:44 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C36E564EE4 for ; Fri, 26 Feb 2021 01:15:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C36E564EE4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5672B8D0003; Thu, 25 Feb 2021 20:15:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5169A8D0002; Thu, 25 Feb 2021 20:15:43 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 42D7D8D0003; Thu, 25 Feb 2021 20:15:43 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0044.hostedemail.com [216.40.44.44]) by kanga.kvack.org (Postfix) with ESMTP id 2D8C38D0002 for ; Thu, 25 Feb 2021 20:15:43 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id EA09F18014D0C for ; Fri, 26 Feb 2021 01:15:42 +0000 (UTC) X-FDA: 77858651724.12.8F9F140 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf12.hostedemail.com (Postfix) with ESMTP id 3ABE7DA for ; Fri, 26 Feb 2021 01:15:36 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id C1D9464EFA; Fri, 26 Feb 2021 01:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1614302141; bh=3TXYHZVIwY7I/zCKDv5RkX1xTsh0Q196SwezecLggC0=; h=Date:From:To:Subject:In-Reply-To:From; b=P8szYqzP5IJEw29+TbX1DuM7rtGr4l2Fsw+ON0eH5J5gvso7Icf1s6FGkuTFU8JYV LLKHkK86qwArL/bX/EmVudaRk3PCV093lSszgpCoF+K+boa5kahYhkVqmGn1hxiPv+ IYFe73E8pNdkDCyZibwEEk3ZepadJzSVi2U8Z9HU= Date: Thu, 25 Feb 2021 17:15:40 -0800 From: Andrew Morton To: akpm@linux-foundation.org, dchinner@redhat.com, hannes@cmpxchg.org, hch@lst.de, hughd@google.com, jack@suse.cz, kirill.shutemov@linux.intel.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org, william.kucharski@oracle.com, willy@infradead.org, yang.shi@linux.alibaba.com Subject: [patch 005/118] mm/filemap: rename find_get_entry to mapping_get_entry Message-ID: <20210226011540.ZpaUQBJsi%akpm@linux-foundation.org> In-Reply-To: <20210225171452.713967e96554bb6a53e44a19@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Stat-Signature: n1qz84dabmsh9diiarei7g4ec6up14ss X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 3ABE7DA Received-SPF: none (linux-foundation.org>: No applicable sender policy available) receiver=imf12; identity=mailfrom; envelope-from=""; helo=mail.kernel.org; client-ip=198.145.29.99 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1614302136-882952 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: From: "Matthew Wilcox (Oracle)" Subject: mm/filemap: rename find_get_entry to mapping_get_entry find_get_entry doesn't "find" anything. It returns the entry at a particular index. Link: https://lkml.kernel.org/r/20201112212641.27837-6-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellwig Cc: Dave Chinner Cc: Hugh Dickins Cc: Jan Kara Cc: Johannes Weiner Cc: Kirill A. Shutemov Cc: William Kucharski Cc: Yang Shi Signed-off-by: Andrew Morton --- mm/filemap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/mm/filemap.c~mm-filemap-rename-find_get_entry-to-mapping_get_entry +++ a/mm/filemap.c @@ -1659,7 +1659,7 @@ pgoff_t page_cache_prev_miss(struct addr EXPORT_SYMBOL(page_cache_prev_miss); /* - * 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. * @@ -1671,7 +1671,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; @@ -1747,7 +1748,7 @@ struct page *pagecache_get_page(struct a struct page *page; repeat: - page = find_get_entry(mapping, index); + page = mapping_get_entry(mapping, index); if (xa_is_value(page)) { if (fgp_flags & FGP_ENTRY) return page; _