Re: [PATCH 3/3] mm, memory_hotplug: move movable_node to the hotplug proper

From: Reza Arbab
Date: Tue May 30 2017 - 11:05:18 EST


On Mon, May 29, 2017 at 01:41:41PM +0200, Michal Hocko wrote:
movable_node_is_enabled is defined in memblock proper while it
is initialized from the memory hotplug proper. This is quite messy
and it makes a dependency between the two so move movable_node along
with the helper functions to memory_hotplug.

To make it more entertaining the kernel parameter is ignored unless
CONFIG_HAVE_MEMBLOCK_NODE_MAP=y because we do not have the node
information for each memblock otherwise. So let's warn when the option
is disabled.

Acked-by: Reza Arbab <arbab@xxxxxxxxxxxxxxxxxx>

--
Reza Arbab