Re: [PATCH v3] page_alloc: allow migration of smaller hugepages during contig_alloc.
From: David Hildenbrand
Date: Mon Oct 27 2025 - 11:45:28 EST
On 24.10.25 21:28, Gregory Price wrote:
We presently skip regions with hugepages entirely when trying to do
contiguous page allocation. Instead, if hugepage migration is enabled,
consider regions with hugepages smaller than the target contiguous
allocation request as valid targets for allocation.
isolate_migrate_pages_block() already expects requests with hugepages
to originate from alloc_contig, and hugetlb code also does a migratable
check when isolating in folio_isolate_hugetlb().
Suggested-by: David Hildenbrand <david@xxxxxxxxxx>
Signed-off-by: Gregory Price <gourry@xxxxxxxxxx>
Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
Reviewed-by: Wei Yang <richard.weiyang@xxxxxxxxx>
---
Nit: trailing "." in subject
Acked-by: David Hildenbrand <david@xxxxxxxxxx>
--
Cheers
David / dhildenb