mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04: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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
65c02d4cfb
commit
be7b3fbcef
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue