mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 13:43:51 +00:00
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>
This commit is contained in:
parent
65c02d4cfb
commit
be7b3fbcef
@ -1661,7 +1661,7 @@ static int calculate_sizes(struct kmem_cache *s)
|
|||||||
*/
|
*/
|
||||||
size += 2 * sizeof(struct track);
|
size += 2 * sizeof(struct track);
|
||||||
|
|
||||||
if (flags & DEBUG_DEFAULT_FLAGS)
|
if (flags & SLAB_RED_ZONE)
|
||||||
/*
|
/*
|
||||||
* Add some empty padding so that we can catch
|
* Add some empty padding so that we can catch
|
||||||
* overwrites from earlier objects rather than let
|
* overwrites from earlier objects rather than let
|
||||||
|
Loading…
Reference in New Issue
Block a user