aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c4
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)
2909 BUG_ON(slabs_node(s, offline_node)); 2909 BUG_ON(slabs_node(s, offline_node));
2910 2910
2911 s->node[offline_node] = NULL; 2911 s->node[offline_node] = NULL;
2912 kmem_cache_free(kmalloc_caches, n); 2912 kmem_cache_free(kmem_cache_node, n);
2913 } 2913 }
2914 } 2914 }
2915 up_read(&slub_lock); 2915 up_read(&slub_lock);
@@ -2942,7 +2942,7 @@ static int slab_mem_going_online_callback(void *arg)
2942 * since memory is not yet available from the node that 2942 * since memory is not yet available from the node that
2943 * is brought up. 2943 * is brought up.
2944 */ 2944 */
2945 n = kmem_cache_alloc(kmalloc_caches, GFP_KERNEL); 2945 n = kmem_cache_alloc(kmem_cache_node, GFP_KERNEL);
2946 if (!n) { 2946 if (!n) {
2947 ret = -ENOMEM; 2947 ret = -ENOMEM;
2948 goto out; 2948 goto out;