drivers/base/node: rename register_memory_blocks_under_node() and remove context...
authorDonet Tom <donettom@linux.ibm.com>
Wed, 28 May 2025 17:18:03 +0000 (12:18 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:42:00 +0000 (22:42 -0700)
commit10f09d82f8b7c25bbd0b6d5142ff6df6e634132d
tree5f0d862928485b22be7542780d69b83066d2c27f
parentac24f6cd87d88150fc6c1fef904794571f62dc5e
drivers/base/node: rename register_memory_blocks_under_node() and remove context argument

The function register_memory_blocks_under_node() is now only called from
the memory hotplug path, as register_memory_blocks_under_node_early()
handles registration during early boot.  Therefore, the context argument
used to differentiate between early boot and hotplug is no longer needed
and was removed.

Since the function is only called from the hotplug path, we renamed
register_memory_blocks_under_node() to
register_memory_blocks_under_node_hotplug()

Link: https://lkml.kernel.org/r/907c22292b0ee4975107876efc875c75c11badd9.1748452242.git.donettom@linux.ibm.com
Signed-off-by: Donet Tom <donettom@linux.ibm.com>
Acked-by: Oscar Salvador <osalvador@suse.de>
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/base/node.c
include/linux/node.h
mm/memory_hotplug.c