aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2007-07-17 07:03:21 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 13:23:01 -0400
commitd45f39cb06610ea456e1d689149b9becacda8b40 (patch)
treeb320a92971c43c42ee1e440e8b43c864485452ab /mm/slub.c
parent6300ea75031e7aebfe3331245b7f750d82621223 (diff)
SLUB Debug: fix initial object debug state of NUMA bootstrap objects
The function we are calling to initialize object debug state during early NUMA bootstrap sets up an inactive object giving it the wrong redzone signature. The bootstrap nodes are active objects and should have active redzone signatures. Currently slab validation complains and reverts the object to active state. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 03ae5490c3dd..a18708821c1e 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1876,7 +1876,8 @@ static struct kmem_cache_node * __init early_kmem_cache_node_alloc(gfp_t gfpflag
1876 page->freelist = get_freepointer(kmalloc_caches, n); 1876 page->freelist = get_freepointer(kmalloc_caches, n);
1877 page->inuse++; 1877 page->inuse++;
1878 kmalloc_caches->node[node] = n; 1878 kmalloc_caches->node[node] = n;
1879 setup_object_debug(kmalloc_caches, page, n); 1879 init_object(kmalloc_caches, n, 1);
1880 init_tracking(kmalloc_caches, n);
1880 init_kmem_cache_node(n); 1881 init_kmem_cache_node(n);
1881 atomic_long_inc(&n->nr_slabs); 1882 atomic_long_inc(&n->nr_slabs);
1882 add_partial(n, page); 1883 add_partial(n, page);