Re: [PATCH 2/2] mem-hotplug: Handle node hole when initializing numa_meminfo.

2015-07-17 Thread Thomas Gleixner
On Fri, 17 Jul 2015, Tang Chen wrote: > diff --git a/include/linux/memblock.h b/include/linux/memblock.h > index d312ae3..c518eb5 100644 > --- a/include/linux/memblock.h > +++ b/include/linux/memblock.h > @@ -77,6 +77,8 @@ int memblock_remove(phys_addr_t base, phys_addr_t size); > int memblock_fre

[PATCH 2/2] mem-hotplug: Handle node hole when initializing numa_meminfo.

2015-07-16 Thread Tang Chen
When parsing SRAT, all memory ranges are added into numa_meminfo. In numa_init(), before entering numa_cleanup_meminfo(), all possible memory ranges are in numa_meminfo. And numa_cleanup_meminfo() removes all ranges over max_pfn or empty. But, this only works if the nodes are continuous. Let's hav