aboutsummaryrefslogtreecommitdiff
path: root/fs/nfs/nfs4super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4super.c')
-rw-r--r--fs/nfs/nfs4super.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/nfs/nfs4super.c b/fs/nfs/nfs4super.c
index 366e4145969..70c394e75ca 100644
--- a/fs/nfs/nfs4super.c
+++ b/fs/nfs/nfs4super.c
@@ -3,6 +3,8 @@
*/
#include <linux/init.h>
#include <linux/nfs_idmap.h>
+#include <linux/nfs_fs.h>
+#include "nfs4_fs.h"
int __init init_nfs_v4(void)
{
@@ -12,12 +14,19 @@ int __init init_nfs_v4(void)
if (err)
goto out;
+ err = nfs4_register_sysctl();
+ if (err)
+ goto out1;
+
return 0;
+out1:
+ nfs_idmap_quit();
out:
return err;
}
void __exit exit_nfs_v4(void)
{
+ nfs4_unregister_sysctl();
nfs_idmap_quit();
}