]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/slub_def.h
slub: No need for per node slab counters if !SLUB_DEBUG
[linux-2.6-omap-h63xx.git] / include / linux / slub_def.h
index b00c1c73eb0a7a3108f2fcc76d4c6fd4ee54fbb8..79d59c937fac4ca62d0ca98c0b3249d1842d78c1 100644 (file)
@@ -45,9 +45,9 @@ struct kmem_cache_cpu {
 struct kmem_cache_node {
        spinlock_t list_lock;   /* Protect partial list and nr_partial */
        unsigned long nr_partial;
-       atomic_long_t nr_slabs;
        struct list_head partial;
 #ifdef CONFIG_SLUB_DEBUG
+       atomic_long_t nr_slabs;
        struct list_head full;
 #endif
 };