Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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
series.

Signed-off-by: Nadia Derbey <Nadia.Derbey@bull.net>
Cc: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: Matt Helsley <matthltc@us.ibm.com>
Cc: Mingming Cao <cmm@us.ibm.com>
Cc: Pierre Peiffer <pierre.peiffer@bull.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Nadia Derbey and committed by
Linus Torvalds
0c40ba4f 4d89dc6a

+7 -1
+6
include/linux/memory.h
··· 53 53 struct notifier_block; 54 54 struct mem_section; 55 55 56 + /* 57 + * Priorities for the hotplug memory callback routines (stored in decreasing 58 + * order in the callback chain) 59 + */ 60 + #define SLAB_CALLBACK_PRI 1 61 + 56 62 #ifndef CONFIG_MEMORY_HOTPLUG_SPARSE 57 63 static inline int memory_dev_init(void) 58 64 {
+1 -1
mm/slub.c
··· 2978 2978 kmalloc_caches[0].refcount = -1; 2979 2979 caches++; 2980 2980 2981 - hotplug_memory_notifier(slab_memory_callback, 1); 2981 + hotplug_memory_notifier(slab_memory_callback, SLAB_CALLBACK_PRI); 2982 2982 #endif 2983 2983 2984 2984 /* Able to allocate the per node structures */