blob: 7c5809431e61b73771ddf047f860272690c0f038 [file] [log] [blame]
Thomas Gleixner09c434b2019-05-19 13:08:20 +01001// SPDX-License-Identifier: GPL-2.0-only
Bryan Schumakerab7017a2012-07-30 16:05:16 -04002/*
3 * Copyright (c) 2012 Netapp, Inc. All rights reserved.
4 */
5#include <linux/module.h>
6#include <linux/nfs_fs.h>
7#include "internal.h"
Anna Schumakercb8c20f2014-09-03 12:19:10 -04008#include "nfs3_fs.h"
Bryan Schumakerab7017a2012-07-30 16:05:16 -04009#include "nfs.h"
10
Peng Tao1a04c6e2014-05-30 18:15:57 +080011struct nfs_subversion nfs_v3 = {
Bryan Schumakerab7017a2012-07-30 16:05:16 -040012 .owner = THIS_MODULE,
13 .nfs_fs = &nfs_fs_type,
14 .rpc_vers = &nfs_version3,
15 .rpc_ops = &nfs_v3_clientops,
Bryan Schumaker6a744902012-07-30 16:05:20 -040016 .sops = &nfs_sops,
Christoph Hellwig013cdf12013-12-20 05:16:53 -080017#ifdef CONFIG_NFS_V3_ACL
18 .xattr = nfs3_xattr_handlers,
19#endif
Bryan Schumakerab7017a2012-07-30 16:05:16 -040020};
21
Bryan Schumaker1c606fb2012-07-30 16:05:24 -040022static int __init init_nfs_v3(void)
Bryan Schumakerab7017a2012-07-30 16:05:16 -040023{
24 register_nfs_version(&nfs_v3);
25 return 0;
26}
27
Bryan Schumaker1c606fb2012-07-30 16:05:24 -040028static void __exit exit_nfs_v3(void)
Bryan Schumakerab7017a2012-07-30 16:05:16 -040029{
30 unregister_nfs_version(&nfs_v3);
31}
Bryan Schumaker1c606fb2012-07-30 16:05:24 -040032
33MODULE_LICENSE("GPL");
34
35module_init(init_nfs_v3);
36module_exit(exit_nfs_v3);