mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-30 16:13:54 +08:00
129d1977ed
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>
24 lines
296 B
C
24 lines
296 B
C
/*
|
|
* 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();
|
|
}
|