-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Bryan Schumaker
authored and
Trond Myklebust
committed
Jul 17, 2012
1 parent
73a7970
commit 129d197
Showing
4 changed files
with
65 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
} |