diff options
author | Christoph Lameter <cl@linux.com> | 2010-10-05 13:57:26 -0500 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2010-10-06 16:54:36 +0300 |
commit | ab4d5ed5eeda4f57c50d14131ce1b1da75d0c938 (patch) | |
tree | e0c574c802138d9b6514dae4f2c46fcc6365b951 /include/linux/slub_def.h | |
parent | 15b7c5142049e7efc3071280e1370dc3b8add6f5 (diff) |
slub: Enable sysfs support for !CONFIG_SLUB_DEBUG
Currently disabling CONFIG_SLUB_DEBUG also disabled SYSFS support meaning
that the slabs cannot be tuned without DEBUG.
Make SYSFS support independent of CONFIG_SLUB_DEBUG
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'include/linux/slub_def.h')
-rw-r--r-- | include/linux/slub_def.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index b33c0f2e61dc..e4f5ed180b9b 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h @@ -87,7 +87,7 @@ struct kmem_cache { unsigned long min_partial; const char *name; /* Name (only for display!) */ struct list_head list; /* List of slab caches */ -#ifdef CONFIG_SLUB_DEBUG +#ifdef CONFIG_SYSFS struct kobject kobj; /* For sysfs */ #endif |