Thomas Gleixner | 09c434b | 2019-05-19 13:08:20 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 2 | /* |
| 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 Schumaker | cb8c20f | 2014-09-03 12:19:10 -0400 | [diff] [blame] | 8 | #include "nfs3_fs.h" |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 9 | #include "nfs.h" |
| 10 | |
Peng Tao | 1a04c6e | 2014-05-30 18:15:57 +0800 | [diff] [blame] | 11 | struct nfs_subversion nfs_v3 = { |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 12 | .owner = THIS_MODULE, |
| 13 | .nfs_fs = &nfs_fs_type, |
| 14 | .rpc_vers = &nfs_version3, |
| 15 | .rpc_ops = &nfs_v3_clientops, |
Bryan Schumaker | 6a74490 | 2012-07-30 16:05:20 -0400 | [diff] [blame] | 16 | .sops = &nfs_sops, |
Christoph Hellwig | 013cdf1 | 2013-12-20 05:16:53 -0800 | [diff] [blame] | 17 | #ifdef CONFIG_NFS_V3_ACL |
| 18 | .xattr = nfs3_xattr_handlers, |
| 19 | #endif |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 20 | }; |
| 21 | |
Bryan Schumaker | 1c606fb | 2012-07-30 16:05:24 -0400 | [diff] [blame] | 22 | static int __init init_nfs_v3(void) |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 23 | { |
| 24 | register_nfs_version(&nfs_v3); |
| 25 | return 0; |
| 26 | } |
| 27 | |
Bryan Schumaker | 1c606fb | 2012-07-30 16:05:24 -0400 | [diff] [blame] | 28 | static void __exit exit_nfs_v3(void) |
Bryan Schumaker | ab7017a | 2012-07-30 16:05:16 -0400 | [diff] [blame] | 29 | { |
| 30 | unregister_nfs_version(&nfs_v3); |
| 31 | } |
Bryan Schumaker | 1c606fb | 2012-07-30 16:05:24 -0400 | [diff] [blame] | 32 | |
| 33 | MODULE_LICENSE("GPL"); |
| 34 | |
| 35 | module_init(init_nfs_v3); |
| 36 | module_exit(exit_nfs_v3); |