diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-05-09 05:32:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-09 15:30:44 -0400 |
commit | be7b3fbcef34452127bed93632b8e788f685d70e (patch) | |
tree | a2d1e80103982fd606390d4bb15131d1dd544b45 /mm | |
parent | 65c02d4cfbbd10188ded3d6577922ab034d943ba (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1661,7 +1661,7 @@ static int calculate_sizes(struct kmem_cache *s) | |||
1661 | */ | 1661 | */ |
1662 | size += 2 * sizeof(struct track); | 1662 | size += 2 * sizeof(struct track); |
1663 | 1663 | ||
1664 | if (flags & DEBUG_DEFAULT_FLAGS) | 1664 | if (flags & SLAB_RED_ZONE) |
1665 | /* | 1665 | /* |
1666 | * Add some empty padding so that we can catch | 1666 | * Add some empty padding so that we can catch |
1667 | * overwrites from earlier objects rather than let | 1667 | * overwrites from earlier objects rather than let |