aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2006-10-07 01:19:44 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-07 13:51:14 -0400
commitdcbd4ec4c258f88d4cfd3c309c8a56faff061340 (patch)
treebad0bb2821f1c2759b709ff29c592f14078ede95
parentada26d41e9ee1da31d11957b4452f4227a292e10 (diff)
[PATCH] slab: remove wrongly placed BUG_ON
Init list is called with a list parameter that is not equal to the cachep->nodelists entry under NUMA if more than one node exists. This is fully legitimatei. One may want to populate the list fields before switching nodelist pointers. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--mm/slab.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 64fb0d770b06..266449d604bd 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1328,7 +1328,6 @@ static void init_list(struct kmem_cache *cachep, struct kmem_list3 *list,
1328{ 1328{
1329 struct kmem_list3 *ptr; 1329 struct kmem_list3 *ptr;
1330 1330
1331 BUG_ON(cachep->nodelists[nodeid] != list);
1332 ptr = kmalloc_node(sizeof(struct kmem_list3), GFP_KERNEL, nodeid); 1331 ptr = kmalloc_node(sizeof(struct kmem_list3), GFP_KERNEL, nodeid);
1333 BUG_ON(!ptr); 1332 BUG_ON(!ptr);
1334 1333