aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangyun Kim <[email protected]>2024-04-06 16:44:49 +0900
committerVlastimil Babka <[email protected]>2024-04-09 11:41:12 +0200
commit5aa5c7b9a09dfce2761c46579cc421708492e890 (patch)
tree73f8ad96c7de5b688c566d973385d7062e02f50e
parentb062539c4e2f31ff346795ce32012e9e6300d212 (diff)
mm/slub: remove duplicate initialization for early_kmem_cache_node_alloc()
The struct track for every object in a new slab is already set up by new_slab(), so remove the duplicate initialization in early_kmem_cache_node_alloc(). Co-developed-by: Hyunmin Lee <[email protected]> Signed-off-by: Hyunmin Lee <[email protected]> Co-developed-by: Jeungwoo Yoo <[email protected]> Signed-off-by: Jeungwoo Yoo <[email protected]> Signed-off-by: Sangyun Kim <[email protected]> Cc: Gwan-gyeong Mun <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
-rw-r--r--mm/slub.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index f4fd460854fd..a30bd2157c07 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -4877,7 +4877,6 @@ static void early_kmem_cache_node_alloc(int node)
BUG_ON(!n);
#ifdef CONFIG_SLUB_DEBUG
init_object(kmem_cache_node, n, SLUB_RED_ACTIVE);
- init_tracking(kmem_cache_node, n);
#endif
n = kasan_slab_alloc(kmem_cache_node, n, GFP_KERNEL, false);
slab->freelist = get_freepointer(kmem_cache_node, n);