Skip to content

Commit fc1878e

Browse files
ZhangPengakpm00
authored andcommitted
mm: remove page_rmapping()
After converting the last user to folio_raw_mapping(), we can safely remove the function. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: ZhangPeng <[email protected]> Reviewed-by: Sidhartha Kumar <[email protected]> Reviewed-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Kefeng Wang <[email protected]> Cc: Nanyong Sun <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 15b4919 commit fc1878e

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

include/linux/mm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,6 @@ static inline void *folio_address(const struct folio *folio)
21702170
return page_address(&folio->page);
21712171
}
21722172

2173-
extern void *page_rmapping(struct page *page);
21742173
extern pgoff_t __page_file_index(struct page *page);
21752174

21762175
/*

mm/util.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -734,12 +734,6 @@ void *vcalloc(size_t n, size_t size)
734734
}
735735
EXPORT_SYMBOL(vcalloc);
736736

737-
/* Neutral page->mapping pointer to address_space or anon_vma or other */
738-
void *page_rmapping(struct page *page)
739-
{
740-
return folio_raw_mapping(page_folio(page));
741-
}
742-
743737
struct anon_vma *folio_anon_vma(struct folio *folio)
744738
{
745739
unsigned long mapping = (unsigned long)folio->mapping;

0 commit comments

Comments
 (0)