diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/9p/v9fs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index 58e6cbce4156..08f2e1e9a7e6 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c | |||
@@ -603,10 +603,11 @@ static int v9fs_cache_register(void) | |||
603 | if (ret < 0) | 603 | if (ret < 0) |
604 | return ret; | 604 | return ret; |
605 | #ifdef CONFIG_9P_FSCACHE | 605 | #ifdef CONFIG_9P_FSCACHE |
606 | return fscache_register_netfs(&v9fs_cache_netfs); | 606 | ret = fscache_register_netfs(&v9fs_cache_netfs); |
607 | #else | 607 | if (ret < 0) |
608 | return ret; | 608 | v9fs_destroy_inode_cache(); |
609 | #endif | 609 | #endif |
610 | return ret; | ||
610 | } | 611 | } |
611 | 612 | ||
612 | static void v9fs_cache_unregister(void) | 613 | static void v9fs_cache_unregister(void) |