Re: [PATCH 04/17] mm: pass the vmem_altmap to arch_add_memory and __add_pages

From: Dan Williams
Date: Fri Dec 15 2017 - 20:48:34 EST


On Fri, Dec 15, 2017 at 6:09 AM, Christoph Hellwig <hch@xxxxxx> wrote:
> We can just pass this on instead of having to do a radix tree lookup
> without proper locking 2 levels into the callchain.
>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Yeah, the lookup of vmem_altmap is too magical and surprising this is better.

Reviewed-by: Dan Williams <dan.j.williams@xxxxxxxxx>