mm-page-alloc-remove-pagemappingflags.patch removed from -mm tree
The quilt patch titled
Subject: mm/page-alloc: remove PageMappingFlags()
has been removed from the -mm tree. Its filename was
mm-page-alloc-remove-pagemappingflags.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 <[email protected]>
Subject: mm/page-alloc: remove PageMappingFlags()
Date: Fri, 4 Jul 2025 12:25:17 +0200
As PageMappingFlags() now only indicates anon (incl. KSM) folios, we can now simply check for PageAnon() and remove PageMappingFlags().
... and while at it, use the folio instead and operate on folio->mapping.
---
include/linux/page-flags.h | 5 ----- mm/page_alloc.c | 7 +++---- 2 files changed, 3 insertions(+), 9 deletions(-)
include/linux/page-flags.h renamed from include/linux/page-flags.h~mm-page-alloc-remove-pagemappingflags +0 -5
@@ -723,11 +723,6 @@ static __always_inline bool folio_mappinreturn ((unsigned long )folio->mapping &PAGE_MAPPING_FLAGS ) !=0 ; } -static __always_inline bool PageMappingFlags(const struct page *page) -{ -return ((unsigned long )page->mapping &PAGE_MAPPING_FLAGS ) !=0 ; -} - static __always_inline bool folio_test_anon(const struct folio *folio) {return ((unsigned long )folio->mapping &PAGE_MAPPING_ANON ) !=0 ;
mm/page_alloc.c renamed from mm/page_alloc.c~mm-page-alloc-remove-pagemappingflags +3 -4
@@ -1375,10 +1375,9 @@ __always_inline bool free_pages_prepare( (page + i)->flags &= ~PAGE_FLAGS_CHECK_AT_PREP ; } } -if (PageMappingFlags (page)) { -if (PageAnon (page)) -mod_mthp_stat (order,MTHP_STAT_NR_ANON ,-1 ); - page->mapping =NULL ; +if (folio_test_anon (folio)) { +mod_mthp_stat (order,MTHP_STAT_NR_ANON ,-1 ); + folio->mapping =NULL ; }if (unlikely (page_has_type (page)))/* Reset the page_type (which overlays _mapcount) */
_
Patches currently in -mm which might be from [email protected] are
mm-convert-fpb_ignore_-into-fpb_respect_.patch mm-smaller-folio_pte_batch-improvements.patch mm-split-folio_pte_batch-into-folio_pte_batch-and-folio_pte_batch_flags.patch mm-remove-boolean-output-parameters-from-folio_pte_batch_ext.patch mm-memory-introduce-is_huge_zero_pfn-and-use-it-in-vm_normal_page_pmd.patch