diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-16 16:39:14 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-17 13:33:18 -0400 |
commit | 466bfe7f4a5bee4cdd73d3f6bd290173a8c75a40 (patch) | |
tree | 1b05eafffa8d48b9ba89bde693495daa80395d56 /fs/nfs/nfs4super.c | |
parent | 129d1977ed39cbb4f091a518e4a12498c04f45ba (diff) |
NFS: Initialize v4 sysctls from nfs_init_v4()
And split them out of the generic client into their own file.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4super.c')
-rw-r--r-- | fs/nfs/nfs4super.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/nfs/nfs4super.c b/fs/nfs/nfs4super.c index 366e41459695..70c394e75ca1 100644 --- a/fs/nfs/nfs4super.c +++ b/fs/nfs/nfs4super.c | |||
@@ -3,6 +3,8 @@ | |||
3 | */ | 3 | */ |
4 | #include <linux/init.h> | 4 | #include <linux/init.h> |
5 | #include <linux/nfs_idmap.h> | 5 | #include <linux/nfs_idmap.h> |
6 | #include <linux/nfs_fs.h> | ||
7 | #include "nfs4_fs.h" | ||
6 | 8 | ||
7 | int __init init_nfs_v4(void) | 9 | int __init init_nfs_v4(void) |
8 | { | 10 | { |
@@ -12,12 +14,19 @@ int __init init_nfs_v4(void) | |||
12 | if (err) | 14 | if (err) |
13 | goto out; | 15 | goto out; |
14 | 16 | ||
17 | err = nfs4_register_sysctl(); | ||
18 | if (err) | ||
19 | goto out1; | ||
20 | |||
15 | return 0; | 21 | return 0; |
22 | out1: | ||
23 | nfs_idmap_quit(); | ||
16 | out: | 24 | out: |
17 | return err; | 25 | return err; |
18 | } | 26 | } |
19 | 27 | ||
20 | void __exit exit_nfs_v4(void) | 28 | void __exit exit_nfs_v4(void) |
21 | { | 29 | { |
30 | nfs4_unregister_sysctl(); | ||
22 | nfs_idmap_quit(); | 31 | nfs_idmap_quit(); |
23 | } | 32 | } |