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>
This commit is contained in:

committed by
Trond Myklebust

parent
129d1977ed
commit
466bfe7f4a
@@ -3,6 +3,8 @@
|
||||
*/
|
||||
#include <linux/init.h>
|
||||
#include <linux/nfs_idmap.h>
|
||||
#include <linux/nfs_fs.h>
|
||||
#include "nfs4_fs.h"
|
||||
|
||||
int __init init_nfs_v4(void)
|
||||
{
|
||||
@@ -12,12 +14,19 @@ int __init init_nfs_v4(void)
|
||||
if (err)
|
||||
goto out;
|
||||
|
||||
err = nfs4_register_sysctl();
|
||||
if (err)
|
||||
goto out1;
|
||||
|
||||
return 0;
|
||||
out1:
|
||||
nfs_idmap_quit();
|
||||
out:
|
||||
return err;
|
||||
}
|
||||
|
||||
void __exit exit_nfs_v4(void)
|
||||
{
|
||||
nfs4_unregister_sysctl();
|
||||
nfs_idmap_quit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user