diff options
-rw-r--r-- | drivers/xen/tmem.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c index c2ee1887806a..30bf97475e13 100644 --- a/drivers/xen/tmem.c +++ b/drivers/xen/tmem.c | |||
@@ -61,14 +61,12 @@ __setup("nofrontswap", no_frontswap); | |||
61 | #endif | 61 | #endif |
62 | #endif /* CONFIG_FRONTSWAP */ | 62 | #endif /* CONFIG_FRONTSWAP */ |
63 | 63 | ||
64 | #ifdef CONFIG_FRONTSWAP | 64 | #ifdef CONFIG_XEN_SELFBALLOONING |
65 | static bool disable_frontswap_selfshrinking __read_mostly; | 65 | static bool disable_frontswap_selfshrinking __read_mostly; |
66 | #ifdef CONFIG_XEN_TMEM_MODULE | 66 | #ifdef CONFIG_XEN_TMEM_MODULE |
67 | module_param(disable_frontswap_selfshrinking, bool, S_IRUGO); | 67 | module_param(disable_frontswap_selfshrinking, bool, S_IRUGO); |
68 | #else | ||
69 | #define disable_frontswap_selfshrinking 1 | ||
70 | #endif | 68 | #endif |
71 | #endif /* CONFIG_FRONTSWAP */ | 69 | #endif /* CONFIG_XEN_SELFBALLOONING */ |
72 | 70 | ||
73 | #define TMEM_CONTROL 0 | 71 | #define TMEM_CONTROL 0 |
74 | #define TMEM_NEW_POOL 1 | 72 | #define TMEM_NEW_POOL 1 |