* + mm-remove-page_rmapping.patch added to mm-unstable branch
@ 2023-07-02 17:43 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-07-02 17:43 UTC (permalink / raw)
To: mm-commits, willy, wangkefeng.wang, sunnanyong, sidhartha.kumar,
zhangpeng362, akpm
The patch titled
Subject: mm: remove page_rmapping()
has been added to the -mm mm-unstable branch. Its filename is
mm-remove-page_rmapping.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-remove-page_rmapping.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: ZhangPeng <zhangpeng362@huawei.com>
Subject: mm: remove page_rmapping()
Date: Sat, 1 Jul 2023 11:28:53 +0800
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>
---
include/linux/mm.h | 1 -
mm/util.c | 6 ------
2 files changed, 7 deletions(-)
--- a/include/linux/mm.h~mm-remove-page_rmapping
+++ a/include/linux/mm.h
@@ -2151,7 +2151,6 @@ static inline void *folio_address(const
return page_address(&folio->page);
}
-extern void *page_rmapping(struct page *page);
extern pgoff_t __page_file_index(struct page *page);
/*
--- a/mm/util.c~mm-remove-page_rmapping
+++ a/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;
_
Patches currently in -mm which might be from zhangpeng362@huawei.com are
mm-use-a-folio-in-fault_dirty_shared_page.patch
mm-remove-page_rmapping.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-02 17:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-02 17:43 + mm-remove-page_rmapping.patch added to mm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.