summaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
authorZhangPeng <zhangpeng362@huawei.com>2023-07-01 05:28:53 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 19:12:01 +0200
commitfc1878ec70ede56ee48f2d65525d4f7c6888b496 (patch)
tree4dac6d6f4c0f15cd589a430b88cac249e80aef73 /mm/util.c
parentmm: use a folio in fault_dirty_shared_page() (diff)
downloadlinux-fc1878ec70ede56ee48f2d65525d4f7c6888b496.tar.xz
linux-fc1878ec70ede56ee48f2d65525d4f7c6888b496.zip
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/20230701032853.258697-3-zhangpeng362@huawei.com Signed-off-by: ZhangPeng <zhangpeng362@huawei.com> Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Nanyong Sun <sunnanyong@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/util.c')
-rw-r--r--mm/util.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/mm/util.c b/mm/util.c
index dd12b9531ac4..5e9305189c3f 100644
--- a/mm/util.c
+++ b/mm/util.c
@@ -734,12 +734,6 @@ void *vcalloc(size_t n, size_t size)
}
EXPORT_SYMBOL(vcalloc);
-/* Neutral page->mapping pointer to address_space or anon_vma or other */
-void *page_rmapping(struct page *page)
-{
- return folio_raw_mapping(page_folio(page));
-}
-
struct anon_vma *folio_anon_vma(struct folio *folio)
{
unsigned long mapping = (unsigned long)folio->mapping;