Re: [PATCH 2/6] mm: handle uninitialized numa nodes gracefully

Michal Hocko
2022-02-03T09:19:52Z

So we will go with the following.
/*
* We do not want to confuse userspace by sysfs files/directories for node
* without any memory attached to it, so this node is not marked as
* N_MEMORY and not marked online so that no sysfs hierarchy will be
* created via register_one_node for this node. The pgdat will get fully
* initialized by hotadd_init_pgdat() when memory is hotpluged into this
* node
*/

OK?
--
Michal Hocko
SUSE Labs