Commit e8f9cb03 authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk

xen/tmem: Split out the different module/boot options.

There are three options - depending on what combination of
CONFIG_FRONTSWAP, CONFIG_CLEANCACHE and CONFIG_XEN_SELFBALLOONING
is used. Lets split them out nicely out in three groups to
make it easier to clean up.
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent 0cb401d4
...@@ -49,10 +49,8 @@ __setup("nocleancache", no_cleancache); ...@@ -49,10 +49,8 @@ __setup("nocleancache", no_cleancache);
#ifdef CONFIG_FRONTSWAP #ifdef CONFIG_FRONTSWAP
static bool disable_frontswap __read_mostly; static bool disable_frontswap __read_mostly;
static bool disable_frontswap_selfshrinking __read_mostly;
#ifdef CONFIG_XEN_TMEM_MODULE #ifdef CONFIG_XEN_TMEM_MODULE
module_param(disable_frontswap, bool, S_IRUGO); module_param(disable_frontswap, bool, S_IRUGO);
module_param(disable_frontswap_selfshrinking, bool, S_IRUGO);
#else #else
static int __init no_frontswap(char *s) static int __init no_frontswap(char *s)
{ {
...@@ -61,8 +59,15 @@ static int __init no_frontswap(char *s) ...@@ -61,8 +59,15 @@ static int __init no_frontswap(char *s)
} }
__setup("nofrontswap", no_frontswap); __setup("nofrontswap", no_frontswap);
#endif #endif
#else /* CONFIG_FRONTSWAP */ #endif /* CONFIG_FRONTSWAP */
#ifdef CONFIG_FRONTSWAP
static bool disable_frontswap_selfshrinking __read_mostly;
#ifdef CONFIG_XEN_TMEM_MODULE
module_param(disable_frontswap_selfshrinking, bool, S_IRUGO);
#else
#define disable_frontswap_selfshrinking 1 #define disable_frontswap_selfshrinking 1
#endif
#endif /* CONFIG_FRONTSWAP */ #endif /* CONFIG_FRONTSWAP */
#define TMEM_CONTROL 0 #define TMEM_CONTROL 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment