blob: 70c394e75ca1f846fa49fc751338adfcd84a6f68 [file] [log] [blame]
Bryan Schumaker129d1972012-07-16 16:39:13 -04001/*
2 * Copyright (c) 2012 Bryan Schumaker <bjschuma@netapp.com>
3 */
4#include <linux/init.h>
5#include <linux/nfs_idmap.h>
Bryan Schumaker466bfe72012-07-16 16:39:14 -04006#include <linux/nfs_fs.h>
7#include "nfs4_fs.h"
Bryan Schumaker129d1972012-07-16 16:39:13 -04008
9int __init init_nfs_v4(void)
10{
11 int err;
12
13 err = nfs_idmap_init();
14 if (err)
15 goto out;
16
Bryan Schumaker466bfe72012-07-16 16:39:14 -040017 err = nfs4_register_sysctl();
18 if (err)
19 goto out1;
20
Bryan Schumaker129d1972012-07-16 16:39:13 -040021 return 0;
Bryan Schumaker466bfe72012-07-16 16:39:14 -040022out1:
23 nfs_idmap_quit();
Bryan Schumaker129d1972012-07-16 16:39:13 -040024out:
25 return err;
26}
27
28void __exit exit_nfs_v4(void)
29{
Bryan Schumaker466bfe72012-07-16 16:39:14 -040030 nfs4_unregister_sysctl();
Bryan Schumaker129d1972012-07-16 16:39:13 -040031 nfs_idmap_quit();
32}