diff options
author | Pavel Tatashin <pasha.tatashin@oracle.com> | 2018-03-14 09:33:45 +0100 |
---|---|---|
committer | Michal Hocko <mhocko@suse.com> | 2018-03-14 10:47:38 +0100 |
commit | d6b04d0158803fcf726e66ecf3eefbb0a865970f (patch) | |
tree | c896fd23c3ed2ff344d4bc0e31575df9c803d746 /drivers | |
parent | e3dbe201b51af4171d677969540c9d8296618296 (diff) |
mm/memory_hotplug: optimize memory hotplug
- Address more comments from Ingo Molnar and Michal Hocko.
- We are now using struct memory_block to hold node id as suggested by
Michal.
Link: http://lkml.kernel.org/r/20180228030308.1116-7-pasha.tatashin@oracle.com
Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Bharata B Rao <bharata@linux.vnet.ibm.com>
Cc: Daniel Jordan <daniel.m.jordan@oracle.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Steven Sistare <steven.sistare@oracle.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/node.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index d7cfc8d8a5c5..51de4af290ac 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c @@ -405,6 +405,8 @@ int register_mem_sect_under_node(struct memory_block *mem_blk, int nid, if (!mem_blk) return -EFAULT; + + mem_blk->nid = nid; if (!node_online(nid)) return 0; |