aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2007-05-10 06:15:44 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-10 12:26:53 -0400
commitbcf889f96597137760c6edfdd0ee59fd37cb108c (patch)
treef9b878addc86abb81d9f376e5226dd1574db4aee /mm/slub.c
parentd4751a2797bc0a37a8e85783d65ffaa9de689e60 (diff)
SLUB: remove nr_cpu_ids hack
This was in SLUB in order to head off trouble while the nr_cpu_ids functionality was not merged. Its merged now so no need to still have this. 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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/slub.c b/mm/slub.c
index b07a1cab4f28..b39c8a69a4ff 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -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",