aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fscache/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fscache/main.c')
-rw-r--r--fs/fscache/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/fscache/main.c b/fs/fscache/main.c
index 76f7c69079c0..7c734b7fb18e 100644
--- a/fs/fscache/main.c
+++ b/fs/fscache/main.c
@@ -52,9 +52,15 @@ static int __init fscache_init(void)
52 if (ret < 0) 52 if (ret < 0)
53 goto error_slow_work; 53 goto error_slow_work;
54 54
55 ret = fscache_proc_init();
56 if (ret < 0)
57 goto error_proc;
58
55 printk(KERN_NOTICE "FS-Cache: Loaded\n"); 59 printk(KERN_NOTICE "FS-Cache: Loaded\n");
56 return 0; 60 return 0;
57 61
62error_proc:
63 slow_work_unregister_user();
58error_slow_work: 64error_slow_work:
59 return ret; 65 return ret;
60} 66}
@@ -68,6 +74,7 @@ static void __exit fscache_exit(void)
68{ 74{
69 _enter(""); 75 _enter("");
70 76
77 fscache_proc_cleanup();
71 slow_work_unregister_user(); 78 slow_work_unregister_user();
72 printk(KERN_NOTICE "FS-Cache: Unloaded\n"); 79 printk(KERN_NOTICE "FS-Cache: Unloaded\n");
73} 80}