[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f428a035-4728-1007-e0d5-97988ffe33cc@arm.com>
Date: Thu, 25 May 2023 09:20:47 +0530
From: Anshuman Khandual <anshuman.khandual@....com>
To: "Matthew Wilcox (Oracle)" <willy@...radead.org>,
linux-arch@...r.kernel.org
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 29/36] mm: Remove page_mapping_file()
On 3/15/23 10:44, Matthew Wilcox (Oracle) wrote:
> This function has no more users.
On v6.4-rc3, there are still some users. Am I looking into a wrong
tree/branch/tag ?
~/workplace/linux$ git grep page_mapping_file
arch/arc/mm/cache.c: mapping = page_mapping_file(page);
arch/arm/mm/copypage-v4mc.c: __flush_dcache_page(page_mapping_file(from), from);
arch/arm/mm/copypage-v6.c: __flush_dcache_page(page_mapping_file(from), from);
arch/arm/mm/copypage-xscale.c: __flush_dcache_page(page_mapping_file(from), from);
arch/arm/mm/fault-armv.c: mapping = page_mapping_file(page);
arch/arm/mm/flush.c: mapping = page_mapping_file(page);
arch/arm/mm/flush.c: mapping = page_mapping_file(page);
arch/csky/abiv1/cacheflush.c: mapping = page_mapping_file(page);
arch/csky/abiv1/cacheflush.c: if (page_mapping_file(page)) {
arch/mips/mm/cache.c: struct address_space *mapping = page_mapping_file(page);
arch/nios2/mm/cacheflush.c: mapping = page_mapping_file(page);
arch/nios2/mm/cacheflush.c: mapping = page_mapping_file(page);
arch/parisc/kernel/cache.c: if (page_mapping_file(page) &&
arch/parisc/kernel/cache.c: struct address_space *mapping = page_mapping_file(page);
arch/sh/mm/cache-sh4.c: struct address_space *mapping = page_mapping_file(page);
arch/sh/mm/cache-sh7705.c: struct address_space *mapping = page_mapping_file(page);
arch/sparc/kernel/smp_64.c: page_mapping_file(page) != NULL));
arch/sparc/kernel/smp_64.c: if (page_mapping_file(page) != NULL &&
arch/sparc/kernel/smp_64.c: if (page_mapping_file(page) != NULL)
arch/sparc/kernel/smp_64.c: if (page_mapping_file(page) != NULL)
arch/sparc/mm/init_64.c: page_mapping_file(page) != NULL));
arch/sparc/mm/init_64.c: if (page_mapping_file(page) != NULL &&
arch/sparc/mm/init_64.c: mapping = page_mapping_file(page);
arch/sparc/mm/tlb.c: mapping = page_mapping_file(page);
arch/xtensa/mm/cache.c: struct address_space *mapping = page_mapping_file(page);
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@...radead.org>
> ---
> include/linux/pagemap.h | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
> index e56c2023aa0e..a87113055b9c 100644
> --- a/include/linux/pagemap.h
> +++ b/include/linux/pagemap.h
> @@ -394,14 +394,6 @@ static inline struct address_space *page_file_mapping(struct page *page)
> return folio_file_mapping(page_folio(page));
> }
>
> -/*
> - * For file cache pages, return the address_space, otherwise return NULL
> - */
> -static inline struct address_space *page_mapping_file(struct page *page)
> -{
> - return folio_flush_mapping(page_folio(page));
> -}
> -
> /**
> * folio_inode - Get the host inode for this folio.
> * @folio: The folio.
Powered by blists - more mailing lists