From c87f6182ef5c76c9da3399ff8d5cd418fe4f194a Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Wed, 19 Jun 2024 17:37:47 +0800 Subject: [PATCH] emm: don't set zram_memcg_nocharge as true until module load It's up to EMM ZRAM module to dedice the value of it, so don't set an default value in kernel. Signed-off-by: Kairui Song --- mm/memcontrol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 7b5d15e4dea3..e3e8f3ac1123 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -84,7 +84,8 @@ #include #ifdef CONFIG_MEMCG_ZRAM -bool zram_memcg_nocharge = true; +bool zram_memcg_nocharge; +EXPORT_SYMBOL(zram_memcg_nocharge); #endif struct cgroup_subsys memory_cgrp_subsys __read_mostly;