diff options
author | Gou Hao <gouhao@uniontech.com> | 2022-12-18 20:31:27 +0800 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2023-01-02 09:37:21 +0100 |
commit | 35e3c36d438e05fcd4f846c76cf22cbda9b63abb (patch) | |
tree | 98f4104b5acd978597bee3b2e29ed42f927e323a /mm/slab.c | |
parent | 88603b6dc419445847923fcb7fe5080067a30f98 (diff) | |
download | linux-starfive-35e3c36d438e05fcd4f846c76cf22cbda9b63abb.tar.gz linux-starfive-35e3c36d438e05fcd4f846c76cf22cbda9b63abb.tar.bz2 linux-starfive-35e3c36d438e05fcd4f846c76cf22cbda9b63abb.zip |
mm/slab: remove unused slab_early_init
'slab_early_init' was introduced by 'commit e0a42726794f
("[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
3217fd9bdf00 ("mm/slab: make criteria for off slab
determination robust and simple")'.
Signed-off-by: Gou Hao <gouhao@uniontech.com>
Acked-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/slab.c b/mm/slab.c index 7a269db050ee..ede1f29fd81c 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -220,7 +220,6 @@ static inline void fixup_objfreelist_debug(struct kmem_cache *cachep, static inline void fixup_slab_list(struct kmem_cache *cachep, struct kmem_cache_node *n, struct slab *slab, void **list); -static int slab_early_init = 1; #define INDEX_NODE kmalloc_index(sizeof(struct kmem_cache_node)) @@ -1249,8 +1248,6 @@ void __init kmem_cache_init(void) slab_state = PARTIAL_NODE; setup_kmalloc_cache_index_table(); - slab_early_init = 0; - /* 5) Replace the bootstrap kmem_cache_node */ { int nid; |