nfs4super.c 450 字节
Newer Older
1 2 3 4 5
/*
 * Copyright (c) 2012 Bryan Schumaker <bjschuma@netapp.com>
 */
#include <linux/init.h>
#include <linux/nfs_idmap.h>
6 7
#include <linux/nfs_fs.h>
#include "nfs4_fs.h"
8 9 10 11 12 13 14 15 16

int __init init_nfs_v4(void)
{
	int err;

	err = nfs_idmap_init();
	if (err)
		goto out;

17 18 19 20
	err = nfs4_register_sysctl();
	if (err)
		goto out1;

21
	return 0;
22 23
out1:
	nfs_idmap_quit();
24 25 26 27 28 29
out:
	return err;
}

void __exit exit_nfs_v4(void)
{
30
	nfs4_unregister_sysctl();
31 32
	nfs_idmap_quit();
}