]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
mm: Remove page_mapping_file()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 28 Feb 2023 16:22:16 +0000 (11:22 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 2 Aug 2023 02:53:27 +0000 (22:53 -0400)
This function has no more users.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
include/linux/pagemap.h

index bd522a64b714a483953a281d63774aef098b0fcf..6f8d6529b350d3a4f45be4059879c0670b0139b4 100644 (file)
@@ -414,14 +414,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.