mm-huge_memory-drop-the-redundant-mapping-argument-of-__split_frozen_folio.patch removed from -mm tree
The quilt patch titled
Subject: mm/huge_memory: drop the redundant mapping argument of __split_frozen_folio
has been removed from the -mm tree. Its filename was
mm-huge_memory-drop-the-redundant-mapping-argument-of-__split_frozen_folio.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: Kairui Song <[email protected]>
Subject: mm/huge_memory: drop the redundant mapping argument of __split_frozen_folio
Date: Wed, 23 Sep 2026 23:32:48 +0200
The mapping parameter only served as a non-NULL check to detect whether page cache entries need updating. The xa_state pointer conveys exactly the same information: the anon split helper passes NULL and the file split helper passes &xas, which is non-NULL iff the folio is in the page cache.
Use the xas pointer instead and drop the parameter, along with its kerneldoc entry.
---
mm/huge_memory.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-huge_memory-drop-the-redundant-mapping-argument-of-__split_frozen_folio +4 -7
@@ -3833,7 +3833,6 @@ static void __split_folio_to_order(struc* @split_at: in buddy allocator like split, the folio containing @split_at * will be split until its order becomes @new_order. * @xas: xa_state pointing to folio->mapping->i_pages and locked by caller -* @mapping: @folio->mapping * @split_type: if the split is uniform or not (buddy allocator like split) * *
@@ -3866,7 +3865,7 @@ static void __split_folio_to_order(struc*/ static int __split_frozen_folio (struct folio *folio,int new_order,struct page *split_at,struct xa_state *xas, -struct address_space *mapping,enum split_type split_type) +enum split_type split_type) {const bool is_anon =folio_test_anon (folio);int old_order =folio_order (folio);
@@ -3890,7 +3889,7 @@ static int __split_frozen_folio(struct fif (is_anon && split_order ==1 )continue ; -if (mapping) { +if (xas) {/* * uniform split has xas_split_alloc() called before * irq is disabled to allocate enough memory, whereas
@@ -4089,8 +4088,7 @@ static int __folio_freeze_split_anon(strif (do_lru) lruvec =folio_lruvec_lock (folio); - ret =__split_frozen_folio (folio, new_order, split_at,NULL , -NULL , split_type); + ret =__split_frozen_folio (folio, new_order, split_at,NULL , split_type);/* * Unfreeze the after-split folios and put them back to the right
@@ -4226,8 +4224,7 @@ static int __folio_freeze_split_file(str/* lock lru list/PageCompound, ref frozen by page_ref_freeze */ lruvec =folio_lruvec_lock (folio); - ret =__split_frozen_folio (folio, new_order, split_at, &xas, - mapping, split_type); + ret =__split_frozen_folio (folio, new_order, split_at, &xas, split_type);/* * Unfreeze after-split folios and put them back to the right
_
Patches currently in -mm which might be from [email protected] are