diff --git a/mm/slab_common.c b/mm/slab_common.c index cb3633501..01389468e 100755 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -33,7 +33,7 @@ #include "slab.h" -enum slab_state slab_state __ro_after_init; +enum slab_state slab_state; LIST_HEAD(slab_caches); DEFINE_MUTEX(slab_mutex); struct kmem_cache *kmem_cache __ro_after_init; @@ -64,7 +64,7 @@ static DECLARE_WORK(slab_caches_to_rcu_destroy_work, /* * Merge control. If this is set then no merging of slab caches will occur. */ -static bool slab_nomerge __ro_after_init = !IS_ENABLED(CONFIG_SLAB_MERGE_DEFAULT); +static bool slab_nomerge = !IS_ENABLED(CONFIG_SLAB_MERGE_DEFAULT); static int __init setup_slab_nomerge(char *str) {