mm-skip-mlocked-thps-that-are-underused-early-in-deferred_split_scan.patch removed from -mm tree
The quilt patch titled
Subject: mm: skip mlocked THPs that are underused early in deferred_split_scan()
has been removed from the -mm tree. Its filename was
mm-skip-mlocked-thps-that-are-underused-early-in-deferred_split_scan.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: Lance Yang <[email protected]>
Subject: mm: skip mlocked THPs that are underused early in deferred_split_scan()
Date: Mon, 8 Sep 2025 17:07:41 +0800
When we stumble over a fully-mapped mlocked THP in the deferred shrinker, it does not make sense to try to detect whether it is underused, because try_to_map_unused_to_zeropage(), called while splitting the folio, will not actually replace any zeroed pages by the shared zeropage.
Splitting the folio in that case does not make any sense, so let's not even scan to check if the folio is underused.
---
mm/huge_memory.c | 7 +++++++ 1 file changed, 7 insertions(+)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-skip-mlocked-thps-that-are-underused-early-in-deferred_split_scan +7 -0
@@ -4175,6 +4175,13 @@ static unsigned long deferred_split_scanbool underused = false;if (!folio_test_partially_mapped (folio)) { +/* +* See try_to_map_unused_to_zeropage(): we cannot +* optimize zero-filled pages after splitting an +* mlocked folio. +*/ +if (folio_test_mlocked (folio)) + goto next; underused =thp_underused (folio);if (!underused) goto next;
_
Patches currently in -mm which might be from [email protected] are
hung_task-fix-warnings-caused-by-unaligned-lock-pointers.patch selftests-mm-skip-soft-dirty-tests-when-config_mem_soft_dirty-is-disabled.patch