Skip to content

Commit 89c9367

Browse files
author
Rafael Aquini
committed
mm: remove page_rmapping()
JIRA: https://issues.redhat.com/browse/RHEL-27743 This patch is a backport of the following upstream commit: commit fc1878e Author: ZhangPeng <[email protected]> Date: Sat Jul 1 11:28:53 2023 +0800 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]> Signed-off-by: Rafael Aquini <[email protected]>
1 parent 3d2e42f commit 89c9367

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
@@ -2278,7 +2278,6 @@ static inline void *folio_address(const struct folio *folio)
22782278
return page_address(&folio->page);
22792279
}
22802280

2281-
extern void *page_rmapping(struct page *page);
22822281
extern pgoff_t __page_file_index(struct page *page);
22832282

22842283
/*

mm/util.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -738,12 +738,6 @@ void *vcalloc(size_t n, size_t size)
738738
}
739739
EXPORT_SYMBOL(vcalloc);
740740

741-
/* Neutral page->mapping pointer to address_space or anon_vma or other */
742-
void *page_rmapping(struct page *page)
743-
{
744-
return folio_raw_mapping(page_folio(page));
745-
}
746-
747741
struct anon_vma *folio_anon_vma(struct folio *folio)
748742
{
749743
unsigned long mapping = (unsigned long)folio->mapping;

0 commit comments

Comments
 (0)