fs: remove page_file_mapping()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 17 Feb 2025 19:20:07 +0000 (19:20 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Feb 2025 01:00:09 +0000 (17:00 -0800)
This wrapper has no more callers.  Delete it.

Link: https://lkml.kernel.org/r/20250217192009.437916-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/pagemap.h

index 47bfc6b1b632dc8812795825a5c1c0554ed10319..975c56fb4f853256c660427af572b72c3987b853 100644 (file)
@@ -575,11 +575,6 @@ static inline struct address_space *folio_flush_mapping(struct folio *folio)
        return folio_mapping(folio);
 }
 
-static inline struct address_space *page_file_mapping(struct page *page)
-{
-       return folio_file_mapping(page_folio(page));
-}
-
 /**
  * folio_inode - Get the host inode for this folio.
  * @folio: The folio.