From: David Rientjes Date: Tue, 28 Jul 2009 01:30:35 +0000 (-0700) Subject: slub: use size and objsize orders to disable debug flags X-Git-Tag: v2.6.32-rc1~695^2^3~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3de472138a138008b534d9587593ba83390e330a;p=pandora-kernel.git 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 . Cc: Christoph Lameter Signed-off-by: David Rientjes Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed