提交 be7b3fbc 编写于 作者: C Christoph Lameter 提交者: Linus Torvalds

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: NChristoph Lameter <clameter@sgi.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 65c02d4c
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册