diff options
author | Christoph Lameter <cl@linux.com> | 2010-08-25 21:51:14 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2010-10-02 09:24:28 +0200 |
commit | 8de66a0c022c7c575c7481224803292cdabed4c4 (patch) | |
tree | 89907eda191909c84f8a9495daaf26a9b86c2bd2 /mm/slub.c | |
parent | slub: Add dummy functions for the !SLUB_DEBUG case (diff) | |
download | linux-8de66a0c022c7c575c7481224803292cdabed4c4.tar.xz linux-8de66a0c022c7c575c7481224803292cdabed4c4.zip |
slub: Fix up missing kmalloc_cache -> kmem_cache_node case for memoryhotplug
Memory hotplug allocates and frees per node structures. Use the correct name.
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c index c1add106c431..b244a5a11a98 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2909,7 +2909,7 @@ static void slab_mem_offline_callback(void *arg) BUG_ON(slabs_node(s, offline_node)); s->node[offline_node] = NULL; - kmem_cache_free(kmalloc_caches, n); + kmem_cache_free(kmem_cache_node, n); } } up_read(&slub_lock); @@ -2942,7 +2942,7 @@ static int slab_mem_going_online_callback(void *arg) * since memory is not yet available from the node that * is brought up. */ - n = kmem_cache_alloc(kmalloc_caches, GFP_KERNEL); + n = kmem_cache_alloc(kmem_cache_node, GFP_KERNEL); if (!n) { ret = -ENOMEM; goto out; |