xref: /openbmc/linux/fs/nfs/nfs3super.c (revision 6a74490dca897471a994a542fc7c5a469b48b46b)
1ab7017a3SBryan Schumaker /*
2ab7017a3SBryan Schumaker  * Copyright (c) 2012 Netapp, Inc. All rights reserved.
3ab7017a3SBryan Schumaker  */
4ab7017a3SBryan Schumaker #include <linux/module.h>
5ab7017a3SBryan Schumaker #include <linux/nfs_fs.h>
6ab7017a3SBryan Schumaker #include "internal.h"
7ab7017a3SBryan Schumaker #include "nfs.h"
8ab7017a3SBryan Schumaker 
9ab7017a3SBryan Schumaker static struct nfs_subversion nfs_v3 = {
10ab7017a3SBryan Schumaker 	.owner = THIS_MODULE,
11ab7017a3SBryan Schumaker 	.nfs_fs   = &nfs_fs_type,
12ab7017a3SBryan Schumaker 	.rpc_vers = &nfs_version3,
13ab7017a3SBryan Schumaker 	.rpc_ops  = &nfs_v3_clientops,
14*6a74490dSBryan Schumaker 	.sops     = &nfs_sops,
15ab7017a3SBryan Schumaker };
16ab7017a3SBryan Schumaker 
17ab7017a3SBryan Schumaker int __init init_nfs_v3(void)
18ab7017a3SBryan Schumaker {
19ab7017a3SBryan Schumaker 	register_nfs_version(&nfs_v3);
20ab7017a3SBryan Schumaker 	return 0;
21ab7017a3SBryan Schumaker }
22ab7017a3SBryan Schumaker 
23ab7017a3SBryan Schumaker void exit_nfs_v3(void)
24ab7017a3SBryan Schumaker {
25ab7017a3SBryan Schumaker 	unregister_nfs_version(&nfs_v3);
26ab7017a3SBryan Schumaker }
27