[Devel] [PATCH rh7] mm: enable tcache and tswap by default

Vladimir Davydov vdavydov at parallels.com
Thu May 14 08:53:30 PDT 2015


Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
 mm/tcache.c |    2 +-
 mm/tswap.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/tcache.c b/mm/tcache.c
index bc740f04a214..e83ad05da944 100644
--- a/mm/tcache.c
+++ b/mm/tcache.c
@@ -125,7 +125,7 @@ static struct tcache_lru *tcache_lru_node;
  */
 
 /* Enable/disable tcache backend (set at boot time) */
-static bool tcache_enabled __read_mostly;
+static bool tcache_enabled __read_mostly = true;
 module_param_named(enabled, tcache_enabled, bool, 0444);
 
 /* Enable/disable populating the cache */
diff --git a/mm/tswap.c b/mm/tswap.c
index c4effa356d4d..4b792cd20710 100644
--- a/mm/tswap.c
+++ b/mm/tswap.c
@@ -27,7 +27,7 @@ struct tswap_lru {
 static struct tswap_lru *tswap_lru_node;
 
 /* Enable/disable tswap backend (set at boot time) */
-static bool tswap_enabled __read_mostly;
+static bool tswap_enabled __read_mostly = true;
 module_param_named(enabled, tswap_enabled, bool, 0444);
 
 /* Enable/disable populating the cache */
-- 
1.7.10.4




More information about the Devel mailing list