summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2007-05-09 02:32:36 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-09 12:30:44 -0700
commitbe7b3fbcef34452127bed93632b8e788f685d70e (patch)
treea2d1e80103982fd606390d4bb15131d1dd544b45 /mm
parent65c02d4cfbbd10188ded3d6577922ab034d943ba (diff)
downloadlinux-stable-be7b3fbcef34452127bed93632b8e788f685d70e.tar.gz
linux-stable-be7b3fbcef34452127bed93632b8e788f685d70e.tar.bz2
linux-stable-be7b3fbcef34452127bed93632b8e788f685d70e.zip
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 <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/slub.c2
1 files changed, 1 insertions, 1 deletions
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