mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 05:13:18 +00:00
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>
This commit is contained in:
parent
15b4919a1e
commit
fc1878ec70
@ -2170,7 +2170,6 @@ static inline void *folio_address(const struct folio *folio)
|
|||||||
return page_address(&folio->page);
|
return page_address(&folio->page);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void *page_rmapping(struct page *page);
|
|
||||||
extern pgoff_t __page_file_index(struct page *page);
|
extern pgoff_t __page_file_index(struct page *page);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -734,12 +734,6 @@ void *vcalloc(size_t n, size_t size)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(vcalloc);
|
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)
|
struct anon_vma *folio_anon_vma(struct folio *folio)
|
||||||
{
|
{
|
||||||
unsigned long mapping = (unsigned long)folio->mapping;
|
unsigned long mapping = (unsigned long)folio->mapping;
|
||||||
|
Loading…
Reference in New Issue
Block a user