Skip to content

Commit 5aa5c7b

Browse files
sangyun0110tehcaster
authored andcommitted
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]>
1 parent b062539 commit 5aa5c7b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mm/slub.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4877,7 +4877,6 @@ static void early_kmem_cache_node_alloc(int node)
48774877
BUG_ON(!n);
48784878
#ifdef CONFIG_SLUB_DEBUG
48794879
init_object(kmem_cache_node, n, SLUB_RED_ACTIVE);
4880-
init_tracking(kmem_cache_node, n);
48814880
#endif
48824881
n = kasan_slab_alloc(kmem_cache_node, n, GFP_KERNEL, false);
48834882
slab->freelist = get_freepointer(kmem_cache_node, n);

0 commit comments

Comments
 (0)