diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-16 22:39:13 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-17 19:33:13 +0200 |
commit | 129d1977ed39cbb4f091a518e4a12498c04f45ba (patch) | |
tree | a795a5885ba0abc2f7e22b18cf3a74c566f59684 /fs/nfs/nfs4super.c | |
parent | NFS: Split out NFS v4 inode operations (diff) | |
download | linux-129d1977ed39cbb4f091a518e4a12498c04f45ba.tar.xz linux-129d1977ed39cbb4f091a518e4a12498c04f45ba.zip |
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 @@ +/* + * Copyright (c) 2012 Bryan Schumaker <bjschuma@netapp.com> + */ +#include <linux/init.h> +#include <linux/nfs_idmap.h> + +int __init init_nfs_v4(void) +{ + int err; + + err = nfs_idmap_init(); + if (err) + goto out; + + return 0; +out: + return err; +} + +void __exit exit_nfs_v4(void) +{ + nfs_idmap_quit(); +} |