mm-huge_memory-fix-outdated-comment-about-freeing-subpages-in-__folio_split.patch removed from -mm tree
The quilt patch titled
Subject: mm/huge_memory: fix outdated comment about freeing subpages in __folio_split
has been removed from the -mm tree. Its filename was
mm-huge_memory-fix-outdated-comment-about-freeing-subpages-in-__folio_split.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: "Barry Song (Xiaomi)" <[email protected]>
Subject: mm/huge_memory: fix outdated comment about freeing subpages in __folio_split
Date: Thu, 23 Apr 2026 11:49:17 +0800
The comment appears to be outdated. add_to_swap() no longer exists, and the explanation of why we need to call put_page() after splitting could be made more general.
---
mm/huge_memory.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-huge_memory-fix-outdated-comment-about-freeing-subpages-in-__folio_split +4 -5
@@ -4190,11 +4190,10 @@ fail:folio_unlock (new_folio);/* -* Subpages may be freed if there wasn't any mapping -* like if add_to_swap() is running on a lru page that -* had its mapping zapped. And freeing these pages -* requires taking the lru_lock so we do the put_page -* of the tail pages after the split is complete. +* Subpages whose mapping has been zapped may be freed +* earlier, but freeing them requires taking the +* lru_lock, so we defer put_page() on tail pages until +* after the split completes. */ free_folio_and_swap_cache (new_folio); }
_
Patches currently in -mm which might be from [email protected] are
mm-mglru-use-folio_mark_accessed-to-replace-folio_set_active.patch mm-mglru-avoid-reclaim-type-fall-back-when-isolation-makes-no-progress.patch