[RFC 3/4] CONFIG_STABLE: Switch off SLUB banner

clameter
2007-05-31T00:31:20Z

[-- Attachment #1: stable_no_slub_banner --]
[-- Type: text/plain, Size: 908 bytes --]

The one line that SLUB prints on bootup is useful for debugging but I do not
think that we would like to have it on in stable kernels.

Signed-off-by: Christoph Lameter <clameter@sgi.com>

---
mm/slub.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Index: slub/mm/slub.c
===================================================================
--- slub.orig/mm/slub.c 2007-05-30 16:40:04.000000000 -0700
+++ slub/mm/slub.c 2007-05-30 16:40:40.000000000 -0700
@@ -2518,12 +2518,13 @@ void __init kmem_cache_init(void)

kmem_size = offsetof(struct kmem_cache, cpu_slab) +
nr_cpu_ids * sizeof(struct page *);
-
+#ifndef CONFIG_STABLE
printk(KERN_INFO "SLUB: Genslabs=%d, HWalign=%d, Order=%d-%d, MinObjects=%d,"
" Processors=%d, Nodes=%d\n",
KMALLOC_SHIFT_HIGH, cache_line_size(),
slub_min_order, slub_max_order, slub_min_objects,
nr_cpu_ids, nr_node_ids);
+#endif
}

/*

--