diff options
-rw-r--r-- | mm/slub.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1853,7 +1853,9 @@ static void init_kmem_cache_node(struct kmem_cache_node *n) | |||
1853 | atomic_long_set(&n->nr_slabs, 0); | 1853 | atomic_long_set(&n->nr_slabs, 0); |
1854 | spin_lock_init(&n->list_lock); | 1854 | spin_lock_init(&n->list_lock); |
1855 | INIT_LIST_HEAD(&n->partial); | 1855 | INIT_LIST_HEAD(&n->partial); |
1856 | #ifdef CONFIG_SLUB_DEBUG | ||
1856 | INIT_LIST_HEAD(&n->full); | 1857 | INIT_LIST_HEAD(&n->full); |
1858 | #endif | ||
1857 | } | 1859 | } |
1858 | 1860 | ||
1859 | #ifdef CONFIG_NUMA | 1861 | #ifdef CONFIG_NUMA |
@@ -1881,8 +1883,10 @@ static struct kmem_cache_node * __init early_kmem_cache_node_alloc(gfp_t gfpflag | |||
1881 | page->freelist = get_freepointer(kmalloc_caches, n); | 1883 | page->freelist = get_freepointer(kmalloc_caches, n); |
1882 | page->inuse++; | 1884 | page->inuse++; |
1883 | kmalloc_caches->node[node] = n; | 1885 | kmalloc_caches->node[node] = n; |
1886 | #ifdef CONFIG_SLUB_DEBUG | ||
1884 | init_object(kmalloc_caches, n, 1); | 1887 | init_object(kmalloc_caches, n, 1); |
1885 | init_tracking(kmalloc_caches, n); | 1888 | init_tracking(kmalloc_caches, n); |
1889 | #endif | ||
1886 | init_kmem_cache_node(n); | 1890 | init_kmem_cache_node(n); |
1887 | atomic_long_inc(&n->nr_slabs); | 1891 | atomic_long_inc(&n->nr_slabs); |
1888 | add_partial(n, page); | 1892 | add_partial(n, page); |