Re: [PATCH v3 2/2] mm: Make alloc_contig_range handle in-use hugetlb pages

From: David Hildenbrand
Date: Fri Mar 05 2021 - 12:31:36 EST


On 22.02.21 14:51, Oscar Salvador wrote:
alloc_contig_range() will fail if it finds a HugeTLB page within the range,
without a chance to handle them. Since HugeTLB pages can be migrated as any
LRU or Movable page, it does not make sense to bail out without trying.
Enable the interface to recognize in-use HugeTLB pages so we can migrate
them, and have much better chances to succeed the call.

Signed-off-by: Oscar Salvador <osalvador@xxxxxxx>

LGTM as far as I can tell, I am only wondering if it wouldn't even be cleaner to squash both patches.

--
Thanks,

David / dhildenb