From: Matthew Wilcox (Oracle) Date: Thu, 31 Dec 2020 22:04:16 +0000 (+0000) Subject: mm/filemap: rename find_get_entry to mapping_get_entry X-Git-Tag: howlett/maple_spf/20210104~143 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a35c23d3db0d8b494144fae9c01a933906f4412c;p=users%2Fjedix%2Flinux-maple.git 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 --- diff --git a/mm/filemap.c b/mm/filemap.c index a1afdba8bc6e..ea29b0024eeb 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1672,7 +1672,7 @@ pgoff_t page_cache_prev_miss(struct address_space *mapping, 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. * @@ -1684,7 +1684,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; @@ -1760,7 +1761,7 @@ struct page *pagecache_get_page(struct address_space *mapping, pgoff_t index, 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;