diff options
Diffstat (limited to 'drivers/xen/tmem.c')
-rw-r--r-- | drivers/xen/tmem.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c index 8a65423bc696..c4211a31612d 100644 --- a/drivers/xen/tmem.c +++ b/drivers/xen/tmem.c | |||
@@ -397,13 +397,15 @@ static int __init xen_tmem_init(void) | |||
397 | #ifdef CONFIG_CLEANCACHE | 397 | #ifdef CONFIG_CLEANCACHE |
398 | BUG_ON(sizeof(struct cleancache_filekey) != sizeof(struct tmem_oid)); | 398 | BUG_ON(sizeof(struct cleancache_filekey) != sizeof(struct tmem_oid)); |
399 | if (tmem_enabled && cleancache) { | 399 | if (tmem_enabled && cleancache) { |
400 | char *s = ""; | 400 | int err; |
401 | struct cleancache_ops *old_ops = | 401 | |
402 | cleancache_register_ops(&tmem_cleancache_ops); | 402 | err = cleancache_register_ops(&tmem_cleancache_ops); |
403 | if (old_ops) | 403 | if (err) |
404 | s = " (WARNING: cleancache_ops overridden)"; | 404 | pr_warn("xen-tmem: failed to enable cleancache: %d\n", |
405 | pr_info("cleancache enabled, RAM provided by Xen Transcendent Memory%s\n", | 405 | err); |
406 | s); | 406 | else |
407 | pr_info("cleancache enabled, RAM provided by " | ||
408 | "Xen Transcendent Memory\n"); | ||
407 | } | 409 | } |
408 | #endif | 410 | #endif |
409 | #ifdef CONFIG_XEN_SELFBALLOONING | 411 | #ifdef CONFIG_XEN_SELFBALLOONING |