mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
mm/slab: remove unused slab_early_init
'slab_early_init' was introduced by 'commite0a4272679
("[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 'commit3217fd9bdf
("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>
This commit is contained in:
parent
88603b6dc4
commit
35e3c36d43
1 changed files with 0 additions and 3 deletions
|
@ -220,7 +220,6 @@ static inline void fixup_objfreelist_debug(struct kmem_cache *cachep,
|
||||||
static inline void fixup_slab_list(struct kmem_cache *cachep,
|
static inline void fixup_slab_list(struct kmem_cache *cachep,
|
||||||
struct kmem_cache_node *n, struct slab *slab,
|
struct kmem_cache_node *n, struct slab *slab,
|
||||||
void **list);
|
void **list);
|
||||||
static int slab_early_init = 1;
|
|
||||||
|
|
||||||
#define INDEX_NODE kmalloc_index(sizeof(struct kmem_cache_node))
|
#define INDEX_NODE kmalloc_index(sizeof(struct kmem_cache_node))
|
||||||
|
|
||||||
|
@ -1249,8 +1248,6 @@ void __init kmem_cache_init(void)
|
||||||
slab_state = PARTIAL_NODE;
|
slab_state = PARTIAL_NODE;
|
||||||
setup_kmalloc_cache_index_table();
|
setup_kmalloc_cache_index_table();
|
||||||
|
|
||||||
slab_early_init = 0;
|
|
||||||
|
|
||||||
/* 5) Replace the bootstrap kmem_cache_node */
|
/* 5) Replace the bootstrap kmem_cache_node */
|
||||||
{
|
{
|
||||||
int nid;
|
int nid;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue