summaryrefslogtreecommitdiff
path: root/include/linux/memory.h
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2025-08-30 01:29:04 +0300
committerDave Jiang <dave.jiang@intel.com>2025-09-03 00:46:47 +0300
commit65128868bb3b0621d2d8e71f19852675a064b373 (patch)
tree580b11d75a280d42cc82716f43b25c1dedb5d487 /include/linux/memory.h
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585 (diff)
downloadlinux-65128868bb3b0621d2d8e71f19852675a064b373.tar.xz
mm/memory_hotplug: Update comment for hotplug memory callback priorities
Add clarification to comment for memory hotplug callback ordering as the current comment does not provide clear language on which callback happens first. Acked-by: David Hildenbrand <david@redhat.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Link: https://patch.msgid.link/20250829222907.1290912-2-dave.jiang@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'include/linux/memory.h')
-rw-r--r--include/linux/memory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/memory.h b/include/linux/memory.h
index 40eb70ccb09d..1305102688d0 100644
--- a/include/linux/memory.h
+++ b/include/linux/memory.h
@@ -115,8 +115,8 @@ struct notifier_block;
struct mem_section;
/*
- * Priorities for the hotplug memory callback routines (stored in decreasing
- * order in the callback chain)
+ * Priorities for the hotplug memory callback routines. Invoked from
+ * high to low. Higher priorities correspond to higher numbers.
*/
#define DEFAULT_CALLBACK_PRI 0
#define SLAB_CALLBACK_PRI 1