diff options
-rw-r--r-- | mm/slub.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2445,9 +2445,8 @@ void __init kmem_cache_init(void) | |||
2445 | register_cpu_notifier(&slab_notifier); | 2445 | register_cpu_notifier(&slab_notifier); |
2446 | #endif | 2446 | #endif |
2447 | 2447 | ||
2448 | if (nr_cpu_ids) /* Remove when nr_cpu_ids is fixed upstream ! */ | 2448 | kmem_size = offsetof(struct kmem_cache, cpu_slab) + |
2449 | kmem_size = offsetof(struct kmem_cache, cpu_slab) | 2449 | nr_cpu_ids * sizeof(struct page *); |
2450 | + nr_cpu_ids * sizeof(struct page *); | ||
2451 | 2450 | ||
2452 | printk(KERN_INFO "SLUB: Genslabs=%d, HWalign=%d, Order=%d-%d, MinObjects=%d," | 2451 | printk(KERN_INFO "SLUB: Genslabs=%d, HWalign=%d, Order=%d-%d, MinObjects=%d," |
2453 | " Processors=%d, Nodes=%d\n", | 2452 | " Processors=%d, Nodes=%d\n", |