Skip to contentSkip to conversation

Mark cache_names __initdata

PATCH New Brian Gerst 1 participant 1 message May 27, 2004 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Mark cache_names __initdata

We don't need to keep the pointer array around after the caches are initialized. This doesn't affect the actual strings.

--
Brian Gerst

mm/slab.c +4 -2
diff -urN linux-2.6.7-rc1-bk/mm/slab.c linux/mm/slab.c
@@ -477,10 +477,12 @@
 EXPORT_SYMBOL(malloc_sizes);
 
 /* Must match cache_sizes above. Out of line to keep cache footprint low. */
-static struct cache_names {
+struct cache_names {
 	char *name;
 	char *name_dma;
-} cache_names[] = {
+};
+
+static struct cache_names __initdata cache_names[] = {
 #define CACHE(x) { .name = "size-" #x, .name_dma = "size-" #x "(DMA)" },
 #include <linux/kmalloc_sizes.h>
 	{ 0, }