2012-07-16 20:39:13 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 Bryan Schumaker <bjschuma@netapp.com>
|
|
|
|
*/
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/nfs_idmap.h>
|
2012-07-16 20:39:14 +00:00
|
|
|
#include <linux/nfs_fs.h>
|
|
|
|
#include "nfs4_fs.h"
|
2012-07-16 20:39:13 +00:00
|
|
|
|
|
|
|
int __init init_nfs_v4(void)
|
|
|
|
{
|
|
|
|
int err;
|
|
|
|
|
|
|
|
err = nfs_idmap_init();
|
|
|
|
if (err)
|
|
|
|
goto out;
|
|
|
|
|
2012-07-16 20:39:14 +00:00
|
|
|
err = nfs4_register_sysctl();
|
|
|
|
if (err)
|
|
|
|
goto out1;
|
|
|
|
|
2012-07-16 20:39:13 +00:00
|
|
|
return 0;
|
2012-07-16 20:39:14 +00:00
|
|
|
out1:
|
|
|
|
nfs_idmap_quit();
|
2012-07-16 20:39:13 +00:00
|
|
|
out:
|
|
|
|
return err;
|
|
|
|
}
|
|
|
|
|
|
|
|
void __exit exit_nfs_v4(void)
|
|
|
|
{
|
2012-07-16 20:39:14 +00:00
|
|
|
nfs4_unregister_sysctl();
|
2012-07-16 20:39:13 +00:00
|
|
|
nfs_idmap_quit();
|
|
|
|
}
|