From: David Rientjes Date: Mon, 9 Jan 2012 21:19:45 +0000 (-0800) Subject: slub: disallow changing cpu_partial from userspace for debug caches X-Git-Tag: v3.3-rc1~99^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74ee4ef1f901fbb014bdcdc9171d126490ce2b62;p=pandora-kernel.git slub: disallow changing cpu_partial from userspace for debug caches For caches with debugging enabled, "slub: Switch per cpu partial page support off for debugging" changes cpu_partial to 0. It shouldn't be tunable from userspace for such caches, otherwise the same accounting issues arise during validation. This patch disallows tuning /sys/kernel/slab/cache/cpu_partial to be non- zero for caches with debugging enabled. Acked-by: Christoph Lameter Signed-off-by: David Rientjes Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed