summaryrefslogtreecommitdiff
path: root/fs/nfs/nfs4super.c
blob: 70c394e75ca1f846fa49fc751338adfcd84a6f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Copyright (c) 2012 Bryan Schumaker <bjschuma@netapp.com>
 */
#include <linux/init.h>
#include <linux/nfs_idmap.h>
#include <linux/nfs_fs.h>
#include "nfs4_fs.h"

int __init init_nfs_v4(void)
{
	int err;

	err = nfs_idmap_init();
	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();
}