aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/levenshtein.h
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2009-07-27 21:30:35 -0400
committerPekka Enberg <penberg@cs.helsinki.fi>2009-07-28 03:53:09 -0400
commit3de472138a138008b534d9587593ba83390e330a (patch)
tree2f31ccb13c90dff68d8fd108575caa534c6c622d /tools/perf/util/levenshtein.h
parentfa5ec8a1f66f3c2a3af723abcf8085509c9ee682 (diff)
slub: use size and objsize orders to disable debug flags
This patch moves the masking of debugging flags which increase a cache's min order due to metadata when `slub_debug=O' is used from kmem_cache_flags() to kmem_cache_open(). Instead of defining the maximum metadata size increase in a preprocessor macro, this approach uses the cache's ->size and ->objsize members to determine if the min order increased due to debugging options. If so, the flags specified in the more appropriately named DEBUG_METADATA_FLAGS are masked off. This approach was suggested by Christoph Lameter <cl@linux-foundation.org>. Cc: Christoph Lameter <cl@linux-foundation.org> Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'tools/perf/util/levenshtein.h')
0 files changed, 0 insertions, 0 deletions