Re: [PATCH 2/4] mm, page_alloc: Split alloc_pages_nodemask

From: Jesper Dangaard Brouer
Date: Wed Jan 11 2017 - 07:32:19 EST


On Mon, 9 Jan 2017 16:35:16 +0000
Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> wrote:

> alloc_pages_nodemask does a number of preperation steps that determine
> what zones can be used for the allocation depending on a variety of
> factors. This is fine but a hypothetical caller that wanted multiple
> order-0 pages has to do the preparation steps multiple times. This patch
> structures __alloc_pages_nodemask such that it's relatively easy to build
> a bulk order-0 page allocator. There is no functional change.
>
> Signed-off-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>

Acked-by: Jesper Dangaard Brouer <brouer@xxxxxxxxxx>

--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
LinkedIn: http://www.linkedin.com/in/brouer