Skip to content

Commit 35e3c36

Browse files
Gou Haotehcaster
authored andcommitted
mm/slab: remove unused slab_early_init
'slab_early_init' was introduced by 'commit e0a4272 ("[PATCH] mm/slab.c: fix early init assumption")', this flag was used to prevent off-slab caches being created so early during bootup. The only user of 'slab_early_init' was removed in 'commit 3217fd9 ("mm/slab: make criteria for off slab determination robust and simple")'. Signed-off-by: Gou Hao <[email protected]> Acked-by: Hyeonggon Yoo <[email protected]> Acked-by: David Rientjes <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
1 parent 88603b6 commit 35e3c36

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mm/slab.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ static inline void fixup_objfreelist_debug(struct kmem_cache *cachep,
220220
static inline void fixup_slab_list(struct kmem_cache *cachep,
221221
struct kmem_cache_node *n, struct slab *slab,
222222
void **list);
223-
static int slab_early_init = 1;
224223

225224
#define INDEX_NODE kmalloc_index(sizeof(struct kmem_cache_node))
226225

@@ -1249,8 +1248,6 @@ void __init kmem_cache_init(void)
12491248
slab_state = PARTIAL_NODE;
12501249
setup_kmalloc_cache_index_table();
12511250

1252-
slab_early_init = 0;
1253-
12541251
/* 5) Replace the bootstrap kmem_cache_node */
12551252
{
12561253
int nid;

0 commit comments

Comments
 (0)