summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGregory Price <gourry@gourry.net>2026-09-02 15:55:07 -0400
committerAndrew Morton <akpm@linux-foundation.org>2026-10-08 22:54:36 -0700
commita85a8d03278fd294e819e2d719805f54225b76ee (patch)
tree4b76d2f2f7b66a4265e58ca09abf4f2f5afb6556 /include/linux
parent0e3846146f069b4afe5fa0f8adc6b70cfc9ff7e6 (diff)
downloadlinux-a85a8d03278fd294e819e2d719805f54225b76ee.tar.gz
linux-a85a8d03278fd294e819e2d719805f54225b76ee.zip
mm/memory_hotplug: factor out node_is_memoryless()
A memoryless node neither spans present pages (populated or ZONE_DEVICE) nor has an offline-but-added memory block still linked to it in sysfs. try_offline_node() presently open-codes this memoryless check. Pull that into a node_is_memoryless() helper and pull the existing check_no_memblock_for_node_cb() helper ahead of the add/online path so it's clearer what is happening here. No functional change. [akpm@linux-foundation.org: move node_is_memoryless() inside CONFIG_MEMORY_HOTREMOVE] Link: https://lore.kernel.org/20260902195507.88655-1-gourry@gourry.net Signed-off-by: Gregory Price <gourry@gourry.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Cc: Oscar Salvador <osalvador@suse.de>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions