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

David Hildenbrand
2021-03-05T17:31:30Z

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@suse.de>

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