diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-16 16:39:13 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-17 13:33:13 -0400 |
commit | 129d1977ed39cbb4f091a518e4a12498c04f45ba (patch) | |
tree | a795a5885ba0abc2f7e22b18cf3a74c566f59684 /fs/nfs/nfs4super.c | |
parent | 73a79706d7f197a428a43fbf335bbe75cdbc221f (diff) |
NFS: Create an init_nfs_v4() function
I want to initialize all of NFS v4 in a single function that will
eventually be used as the v4 module init function.
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 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/fs/nfs/nfs4super.c b/fs/nfs/nfs4super.c new file mode 100644 index 000000000000..366e41459695 --- /dev/null +++ b/fs/nfs/nfs4super.c | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2012 Bryan Schumaker <bjschuma@netapp.com> | ||
3 | */ | ||
4 | #include <linux/init.h> | ||
5 | #include <linux/nfs_idmap.h> | ||
6 | |||
7 | int __init init_nfs_v4(void) | ||
8 | { | ||
9 | int err; | ||
10 | |||
11 | err = nfs_idmap_init(); | ||
12 | if (err) | ||
13 | goto out; | ||
14 | |||
15 | return 0; | ||
16 | out: | ||
17 | return err; | ||
18 | } | ||
19 | |||
20 | void __exit exit_nfs_v4(void) | ||
21 | { | ||
22 | nfs_idmap_quit(); | ||
23 | } | ||