projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fbb7e7
)
mm: remove page_mapping_file()
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Wed, 2 Aug 2023 15:13:58 +0000
(16:13 +0100)
committer
Andrew Morton
<akpm@linux-foundation.org>
Thu, 24 Aug 2023 23:20:25 +0000
(16:20 -0700)
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>
include/linux/pagemap.h
patch
|
blob
|
history
diff --git
a/include/linux/pagemap.h
b/include/linux/pagemap.h
index 88d161887cf22d060b857c8bf12ce00da4b87430..b5c4c8beefe20f0a7bb1135bd3232582a5656c26 100644
(file)
--- 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.