From 2c3e9d8cd6b99b3e4e58395a0e1369bdc1ceeda1 Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Tue, 29 Apr 2008 16:16:06 -0700 Subject: [PATCH] --- yaml --- r: 95917 b: refs/heads/master c: f6acb63508700b5f8cd817082b62c96ba907775e h: refs/heads/master i: 95915: 8b8821a54b507957c60e6821cd7c7d41aef2510f v: v3 --- [refs] | 2 +- trunk/init/Kconfig | 2 +- trunk/mm/slub.c | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 2b235b0e59f6..4f459a4649b5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f715e6f15ee167026581a8a2e09b2ed644b974aa +refs/heads/master: f6acb63508700b5f8cd817082b62c96ba907775e diff --git a/trunk/init/Kconfig b/trunk/init/Kconfig index 3e7b257fc05f..6a44defac3ec 100644 --- a/trunk/init/Kconfig +++ b/trunk/init/Kconfig @@ -720,7 +720,7 @@ config VM_EVENT_COUNTERS config SLUB_DEBUG default y bool "Enable SLUB debugging support" if EMBEDDED - depends on SLUB + depends on SLUB && SYSFS help SLUB has extensive debug support features. Disabling these can result in significant savings in code size. This also disables diff --git a/trunk/mm/slub.c b/trunk/mm/slub.c index c9c12ac79613..d379b782fc83 100644 --- a/trunk/mm/slub.c +++ b/trunk/mm/slub.c @@ -217,7 +217,7 @@ struct track { enum track_item { TRACK_ALLOC, TRACK_FREE }; -#if defined(CONFIG_SYSFS) && defined(CONFIG_SLUB_DEBUG) +#ifdef CONFIG_SLUB_DEBUG static int sysfs_slab_add(struct kmem_cache *); static int sysfs_slab_alias(struct kmem_cache *, const char *); static void sysfs_slab_remove(struct kmem_cache *); @@ -3247,7 +3247,7 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags, return slab_alloc(s, gfpflags, node, caller); } -#if (defined(CONFIG_SYSFS) && defined(CONFIG_SLUB_DEBUG)) || defined(CONFIG_SLABINFO) +#ifdef CONFIG_SLUB_DEBUG static unsigned long count_partial(struct kmem_cache_node *n, int (*get_count)(struct page *)) { @@ -3276,9 +3276,7 @@ static int count_free(struct page *page) { return page->objects - page->inuse; } -#endif -#if defined(CONFIG_SYSFS) && defined(CONFIG_SLUB_DEBUG) static int validate_slab(struct kmem_cache *s, struct page *page, unsigned long *map) {