[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20190104100941.29872-1-rocking@whu.edu.cn>
Date: Fri, 4 Jan 2019 18:09:41 +0800
From: Peng Wang <rocking@....edu.cn>
To: cl@...ux.com, penberg@...nel.org, rientjes@...gle.com,
iamjoonsoo.kim@....com, akpm@...ux-foundation.org
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Peng Wang <rocking@....edu.cn>
Subject: [PATCH] mm/slub.c: keep red_left_pad being zero without SLAB_RED_ZONE flag
It seems more clear for red_left_pad to be zero despite not being used
without SLAB_RED_ZONE flag.
Signed-off-by: Peng Wang <rocking@....edu.cn>
---
mm/slub.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/slub.c b/mm/slub.c
index 36c0befeebd8..9d16ca30bc2a 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3603,6 +3603,7 @@ static int kmem_cache_open(struct kmem_cache *s, slab_flags_t flags)
if (get_order(s->size) > get_order(s->object_size)) {
s->flags &= ~DEBUG_METADATA_FLAGS;
s->offset = 0;
+ s->red_left_pad = 0;
if (!calculate_sizes(s, -1))
goto error;
}
--
2.19.1
Powered by blists - more mailing lists