aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/pagemap.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-08-02 16:13:58 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-08-24 16:20:25 -0700
commit29269ad90bed55a9ece007a7ece53f4505df3781 (patch)
treec8b1fcc851d42f53e031c747a7e2f37345134680 /include/linux/pagemap.h
parentxtensa: implement the new page table range API (diff)
downloadwireguard-linux-29269ad90bed55a9ece007a7ece53f4505df3781.tar.xz
wireguard-linux-29269ad90bed55a9ece007a7ece53f4505df3781.zip
mm: remove page_mapping_file()
This function has no more users. Link: https://lkml.kernel.org/r/20230802151406.3735276-31-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/pagemap.h')
-rw-r--r--include/linux/pagemap.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
index 88d161887cf2..b5c4c8beefe2 100644
--- a/include/linux/pagemap.h
+++ b/include/linux/pagemap.h
@@ -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.