Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7444df2

Browse files
committed
ZEN: INTERACTIVE: Enable zswap by default
1 parent 11c4c38 commit 7444df2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

init/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ config ZEN_INTERACTIVE
9090
Mem dirty before sync writeback: 20 % -> 50 %
9191
Compact unevictable pages......: yes -> no
9292
Background-reclaim hugepages...: no -> yes
93+
Zswap enabled..................: no -> yes
9394

9495
config BROKEN
9596
bool

mm/zswap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ static u64 zswap_duplicate_entry;
7272
#define ZSWAP_PARAM_UNSET ""
7373

7474
/* Enable/disable zswap (disabled by default) */
75+
#ifdef CONFIG_ZEN_INTERACTIVE
76+
static bool zswap_enabled = true;
77+
#else
7578
static bool zswap_enabled;
79+
#endif
7680
static int zswap_enabled_param_set(const char *,
7781
const struct kernel_param *);
7882
static struct kernel_param_ops zswap_enabled_param_ops = {

0 commit comments

Comments
 (0)