diff options
author | Sangyun Kim | 2024-04-06 16:44:49 +0900 |
---|---|---|
committer | Vlastimil Babka | 2024-04-09 11:41:12 +0200 |
commit | 5aa5c7b9a09dfce2761c46579cc421708492e890 (patch) | |
tree | 73f8ad96c7de5b688c566d973385d7062e02f50e /mm | |
parent | b062539c4e2f31ff346795ce32012e9e6300d212 (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 <hyunminlr@gmail.com>
Signed-off-by: Hyunmin Lee <hyunminlr@gmail.com>
Co-developed-by: Jeungwoo Yoo <casionwoo@gmail.com>
Signed-off-by: Jeungwoo Yoo <casionwoo@gmail.com>
Signed-off-by: Sangyun Kim <sangyun.kim@snu.ac.kr>
Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 1 |
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); |