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 <kasong@tencent.com>
This commit is contained in:
Kairui Song 2024-06-19 17:37:47 +08:00 committed by frankjpliu
parent 88c53aa917
commit c87f6182ef
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@
#include <trace/events/vmscan.h>
#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;