summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>2025-12-09 06:17:45 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-01-21 06:24:42 +0300
commit9f5edd785da3cf373285259928d7f1f08c9ce758 (patch)
tree6463d7b66eff0472bb5a02ecefa50eae0b671700 /include/linux
parent6e4930e33329eec80dd245f28b52202271f5fb28 (diff)
downloadlinux-9f5edd785da3cf373285259928d7f1f08c9ce758.tar.xz
tools/mm/thp_swap_allocator_test: fix small folio alignment
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. Link: https://lkml.kernel.org/r/20251209031745.2723120-1-kaushlendra.kumar@intel.com Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions