From: Christoph Lameter Date: Wed, 9 May 2007 09:32:36 +0000 (-0700) Subject: SLUB: after object padding only needed for Redzoning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=be7b3fbcef34452127bed93632b8e788f685d70e;p=openwrt%2Fstaging%2Fblogic.git SLUB: after object padding only needed for Redzoning If no redzoning is selected then we do not need padding before the next object. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slub.c b/mm/slub.c index 40e92d8d4bc6..beac34a5e4fd 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1661,7 +1661,7 @@ static int calculate_sizes(struct kmem_cache *s) */ size += 2 * sizeof(struct track); - if (flags & DEBUG_DEFAULT_FLAGS) + if (flags & SLAB_RED_ZONE) /* * Add some empty padding so that we can catch * overwrites from earlier objects rather than let