mm-remove-page_mapped.patch removed from -mm tree
The quilt patch titled
Subject: mm: remove page_mapped()
has been removed from the -mm tree. Its filename was
mm-remove-page_mapped.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "David Hildenbrand (Arm)" <[email protected]>
Subject: mm: remove page_mapped()
Date: Mon, 27 Apr 2026 13:43:16 +0200
Let's replace the last user of page_mapped() by folio_mapped() so we can get rid of page_mapped().
Replace the remaining occurrences of page_mapped() in rmap documentation by folio_mapped().
---
include/linux/mm.h | 10 ---------- mm/memory.c | 2 +- mm/rmap.c | 8 ++++---- 3 files changed, 5 insertions(+), 15 deletions(-)
include/linux/mm.h renamed from include/linux/mm.h~mm-remove-page_mapped +0 -10
@@ -1888,16 +1888,6 @@ static inline bool folio_mapped(const streturn folio_mapcount (folio) >=1 ; } -/* -* Return true if this page is mapped into pagetables. -* For compound page it returns true if any sub-page of compound page is mapped, -* even if this particular sub-page is not itself mapped by any PTE or PMD. -*/ -static inline bool page_mapped (const struct page *page) -{ -return folio_mapped (page_folio (page)); -} -static inline struct page *virt_to_head_page (const void *x) {struct page *page =virt_to_page (x);
mm/memory.c renamed from mm/memory.c~mm-remove-page_mapped +1 -1
@@ -5482,7 +5482,7 @@ static vm_fault_t __do_fault(struct vm_fif (unlikely (PageHWPoison (vmf->page))) {vm_fault_t poisonret =VM_FAULT_HWPOISON ;if (ret &VM_FAULT_LOCKED ) { -if (page_mapped (vmf->page)) +if (folio_mapped (folio))unmap_mapping_folio (folio);/* Retry if a clean folio was removed from the cache. */ if (mapping_evict_folio (folio->mapping, folio))
mm/rmap.c renamed from mm/rmap.c~mm-remove-page_mapped +4 -4
@@ -571,7 +571,7 @@ void __init anon_vma_init(void)* In case it was remapped to a different anon_vma, the new anon_vma will be a * child of the old anon_vma, and the anon_vma lifetime rules will therefore * ensure that any anon_vma obtained from the page will still be valid for as -* long as we observe page_mapped() [ hence all those page_mapped() tests ]. +* long as we observe folio_mapped() [ hence all those folio_mapped() tests ]. * * All users of this function must be very careful when walking the anon_vma * chain and verify that the page in question is indeed mapped in it
@@ -1999,7 +1999,7 @@ static bool try_to_unmap_one(struct foli/* * When racing against e.g. zap_pte_range() on another cpu, * in between its ptep_get_and_clear_full() and folio_remove_rmap_*(), -* try_to_unmap() may return before page_mapped() has become false, +* try_to_unmap() may return before folio_mapped() has become false, * if page table locking is skipped: use TTU_SYNC to wait for that. */ if (flags &TTU_SYNC )
@@ -2428,7 +2428,7 @@ static bool try_to_migrate_one(struct fo/* * When racing against e.g. zap_pte_range() on another cpu, * in between its ptep_get_and_clear_full() and folio_remove_rmap_*(), -* try_to_migrate() may return before page_mapped() has become false, +* try_to_migrate() may return before folio_mapped() has become false, * if page table locking is skipped: use TTU_SYNC to wait for that. */ if (flags &TTU_SYNC )
@@ -2929,7 +2929,7 @@ static struct anon_vma *rmap_walk_anon_l/* * Note: remove_migration_ptes() cannot use folio_lock_anon_vma_read() -* because that depends on page_mapped(); but not all its usages +* because that depends on folio_mapped(); but not all its usages * are holding mmap_lock. Users without mmap_lock are required to * take a reference count to prevent the anon_vma disappearing */
_
Patches currently in -mm which might be from [email protected] are
sparc-mm-remove-register_page_bootmem_info.patch mm-bootmem_info-drop-initialization-of-page-lru.patch mm-bootmem_info-stop-using-pg_private.patch mm-bootmem_info-remove-call-to-kmemleak_free_part_phys.patch mm-bootmem_info-stop-marking-the-pgdat-as-node_info.patch mm-bootmem_info-stop-marking-mem_section_usage-as-mix_section_info.patch s390-mm-use-free_reserved_page-in-vmem_free_pages.patch powerpc-mm-remove-config_have_bootmem_info_node.patch