projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d550c5
)
slub: Fix up missing kmalloc_cache -> kmem_cache_node case for memoryhotplug
author
Christoph Lameter
<
[email protected]
>
Wed, 25 Aug 2010 19:51:14 +0000
(14:51 -0500)
committer
Pekka Enberg
<
[email protected]
>
Sat, 2 Oct 2010 07:24:28 +0000
(10:24 +0300)
Memory hotplug allocates and frees per node structures. Use the correct name.
Acked-by: David Rientjes <
[email protected]
>
Acked-by: Randy Dunlap <
[email protected]
>
Signed-off-by: Christoph Lameter <
[email protected]
>
Signed-off-by: Pekka Enberg <
[email protected]
>
mm/slub.c
patch
|
blob
|
history
diff --git
a/mm/slub.c
b/mm/slub.c
index c1add106c4317f15743e10ab26bc340cdd5f0c27..b244a5a11a98a19b7d43c03004a16b82f0b29b00 100644
(file)
--- 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(km
alloc_caches
, n);
+ kmem_cache_free(km
em_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(km
alloc_caches
, GFP_KERNEL);
+ n = kmem_cache_alloc(km
em_cache_node
, GFP_KERNEL);
if (!n) {
ret = -ENOMEM;
goto out;