diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-05-08 15:58:06 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-05-15 10:27:44 -0400 |
commit | e8f9cb034b1cb633ff920ec65381a2e7ac1d76f2 (patch) | |
tree | 936ad5d3e2c25802a62987b786409cb5b218648d /drivers/xen/tmem.c | |
parent | 0cb401d44e1152658c99c8566de915c2d71eab9e (diff) |
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: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/tmem.c')
-rw-r--r-- | drivers/xen/tmem.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c index edf7e18a1c05..c2ee1887806a 100644 --- a/drivers/xen/tmem.c +++ b/drivers/xen/tmem.c | |||
@@ -49,10 +49,8 @@ __setup("nocleancache", no_cleancache); | |||
49 | 49 | ||
50 | #ifdef CONFIG_FRONTSWAP | 50 | #ifdef CONFIG_FRONTSWAP |
51 | static bool disable_frontswap __read_mostly; | 51 | static bool disable_frontswap __read_mostly; |
52 | static bool disable_frontswap_selfshrinking __read_mostly; | ||
53 | #ifdef CONFIG_XEN_TMEM_MODULE | 52 | #ifdef CONFIG_XEN_TMEM_MODULE |
54 | module_param(disable_frontswap, bool, S_IRUGO); | 53 | module_param(disable_frontswap, bool, S_IRUGO); |
55 | module_param(disable_frontswap_selfshrinking, bool, S_IRUGO); | ||
56 | #else | 54 | #else |
57 | static int __init no_frontswap(char *s) | 55 | static int __init no_frontswap(char *s) |
58 | { | 56 | { |
@@ -61,8 +59,15 @@ static int __init no_frontswap(char *s) | |||
61 | } | 59 | } |
62 | __setup("nofrontswap", no_frontswap); | 60 | __setup("nofrontswap", no_frontswap); |
63 | #endif | 61 | #endif |
64 | #else /* CONFIG_FRONTSWAP */ | 62 | #endif /* CONFIG_FRONTSWAP */ |
63 | |||
64 | #ifdef CONFIG_FRONTSWAP | ||
65 | static bool disable_frontswap_selfshrinking __read_mostly; | ||
66 | #ifdef CONFIG_XEN_TMEM_MODULE | ||
67 | module_param(disable_frontswap_selfshrinking, bool, S_IRUGO); | ||
68 | #else | ||
65 | #define disable_frontswap_selfshrinking 1 | 69 | #define disable_frontswap_selfshrinking 1 |
70 | #endif | ||
66 | #endif /* CONFIG_FRONTSWAP */ | 71 | #endif /* CONFIG_FRONTSWAP */ |
67 | 72 | ||
68 | #define TMEM_CONTROL 0 | 73 | #define TMEM_CONTROL 0 |