mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
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>
This commit is contained in:
parent
7d550c56a2
commit
8de66a0c02
1 changed files with 2 additions and 2 deletions
|
@ -2909,7 +2909,7 @@ static void slab_mem_offline_callback(void *arg)
|
||||||
BUG_ON(slabs_node(s, offline_node));
|
BUG_ON(slabs_node(s, offline_node));
|
||||||
|
|
||||||
s->node[offline_node] = NULL;
|
s->node[offline_node] = NULL;
|
||||||
kmem_cache_free(kmalloc_caches, n);
|
kmem_cache_free(kmem_cache_node, n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
up_read(&slub_lock);
|
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
|
* since memory is not yet available from the node that
|
||||||
* is brought up.
|
* is brought up.
|
||||||
*/
|
*/
|
||||||
n = kmem_cache_alloc(kmalloc_caches, GFP_KERNEL);
|
n = kmem_cache_alloc(kmem_cache_node, GFP_KERNEL);
|
||||||
if (!n) {
|
if (!n) {
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in a new issue