Commit 0c40ba4f authored by Nadia Derbey's avatar Nadia Derbey Committed by Linus Torvalds
Browse files

ipc: define the slab_memory_callback priority as a constant

This is a trivial patch that defines the priority of slab_memory_callback in
the callback chain as a constant.  This is to prepare for next patch in the
Signed-off-by: default avatarNadia Derbey <>
Cc: Yasunori Goto <>
Cc: Matt Helsley <>
Cc: Mingming Cao <>
Cc: Pierre Peiffer <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 4d89dc6a
......@@ -53,6 +53,12 @@ struct memory_notify {
struct notifier_block;
struct mem_section;
* Priorities for the hotplug memory callback routines (stored in decreasing
* order in the callback chain)
static inline int memory_dev_init(void)
......@@ -2978,7 +2978,7 @@ void __init kmem_cache_init(void)
kmalloc_caches[0].refcount = -1;
hotplug_memory_notifier(slab_memory_callback, 1);
hotplug_memory_notifier(slab_memory_callback, SLAB_CALLBACK_PRI);
/* Able to allocate the per node structures */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment