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

From: Michal Hocko
Date: Thu Feb 03 2022 - 04:19:59 EST


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