]> git.baikalelectronics.ru Git - kernel.git/commit
slub: Deal with config variable dependencies
authorChristoph Lameter <clameter@sgi.com>
Mon, 14 Apr 2008 15:51:34 +0000 (18:51 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Mon, 14 Apr 2008 15:51:34 +0000 (18:51 +0300)
commit0c8fe789067b8cac3638c20fbe95887a6d2a304d
treecf4d606b54659833a98a4b66c76ee3562bcd1062
parent97264cd697c67f8f4b3e1866cf020c020deffbea
slub: Deal with config variable dependencies

count_partial() is used by both slabinfo and the sysfs proc support. Move
the function directly before the beginning of the sysfs code so that it can
be easily found. Rework the preprocessor conditional to take into account
that slub sysfs support depends on CONFIG_SYSFS *and* CONFIG_SLUB_DEBUG.

Make CONFIG_SLUB_STATS depend on CONFIG_SLUB_DEBUG and CONFIG_SYSFS. There
is no point of keeping statistics if no one can restrive them.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
lib/Kconfig.debug
mm/slub.c