diff options
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index a547c58a83e6..cb5c65f0bc12 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -1141,6 +1141,10 @@ static int __init init_nfs_fs(void) | |||
1141 | { | 1141 | { |
1142 | int err; | 1142 | int err; |
1143 | 1143 | ||
1144 | err = nfs_fs_proc_init(); | ||
1145 | if (err) | ||
1146 | goto out5; | ||
1147 | |||
1144 | err = nfs_init_nfspagecache(); | 1148 | err = nfs_init_nfspagecache(); |
1145 | if (err) | 1149 | if (err) |
1146 | goto out4; | 1150 | goto out4; |
@@ -1181,6 +1185,8 @@ out2: | |||
1181 | out3: | 1185 | out3: |
1182 | nfs_destroy_nfspagecache(); | 1186 | nfs_destroy_nfspagecache(); |
1183 | out4: | 1187 | out4: |
1188 | nfs_fs_proc_exit(); | ||
1189 | out5: | ||
1184 | return err; | 1190 | return err; |
1185 | } | 1191 | } |
1186 | 1192 | ||
@@ -1195,6 +1201,7 @@ static void __exit exit_nfs_fs(void) | |||
1195 | rpc_proc_unregister("nfs"); | 1201 | rpc_proc_unregister("nfs"); |
1196 | #endif | 1202 | #endif |
1197 | unregister_nfs_fs(); | 1203 | unregister_nfs_fs(); |
1204 | nfs_fs_proc_exit(); | ||
1198 | } | 1205 | } |
1199 | 1206 | ||
1200 | /* Not quite true; I just maintain it */ | 1207 | /* Not quite true; I just maintain it */ |