tools-mm-thp_swap_allocator_test-fix-small-folio-alignment.patch removed from -mm tree
The quilt patch titled
Subject: tools/mm/thp_swap_allocator_test: fix small folio alignment
has been removed from the -mm tree. Its filename was
tools-mm-thp_swap_allocator_test-fix-small-folio-alignment.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: Kaushlendra Kumar <[email protected]>
Subject: tools/mm/thp_swap_allocator_test: fix small folio alignment
Date: Tue, 9 Dec 2025 08:47:45 +0530
Use ALIGNMENT_SMALLFOLIO instead of ALIGNMENT_MTHP when allocating small folios to ensure correct memory alignment for the test case.
Before: test allocates small folios with 64KB alignment (ALIGNMENT_MTHP) when only 4KB alignment (ALIGNMENT_SMALLFOLIO) is needed. This wastes address space and may cause allocation failures on systems with fragmented memory.
Worst-case impact: this only affects thp_swap_allocator_test tool behavior.
---
tools/mm/thp_swap_allocator_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/mm/thp_swap_allocator_test.c renamed from tools/mm/thp_swap_allocator_test.c~tools-mm-thp_swap_allocator_test-fix-small-folio-alignment +1 -1
@@ -142,7 +142,7 @@ int main(int argc, char *argv[]) }if (use_small_folio) { - mem2 =aligned_alloc_mem (MEMSIZE_SMALLFOLIO ,ALIGNMENT_MTHP ); + mem2 =aligned_alloc_mem (MEMSIZE_SMALLFOLIO ,ALIGNMENT_SMALLFOLIO );if (mem2 ==NULL ) {fprintf (stderr,"Failed to allocate small folios memory\n" );free (mem1);
_
Patches currently in -mm which might be from [email protected] are