summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/logfs/super.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/logfs/super.c b/fs/logfs/super.c
index 7de18c3..97bca62 100644
--- a/fs/logfs/super.c
+++ b/fs/logfs/super.c
@@ -626,7 +626,10 @@ static int __init logfs_init(void)
if (ret)
goto out2;
- return register_filesystem(&logfs_fs_type);
+ ret = register_filesystem(&logfs_fs_type);
+ if (!ret)
+ return 0;
+ logfs_destroy_inode_cache();
out2:
logfs_compr_exit();
out1:
OpenPOWER on IntegriCloud