blob: 467f21ee6a35eda7c37c3a2b7a0629103e21f712 [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"
8#include "nfs.h"
9
10static struct nfs_subversion nfs_v2 = {
11 .owner = THIS_MODULE,
12 .nfs_fs = &nfs_fs_type,
13 .rpc_vers = &nfs_version2,
14 .rpc_ops = &nfs_v2_clientops,
Bryan Schumaker6a744902012-07-30 16:05:20 -040015 .sops = &nfs_sops,
Bryan Schumakerab7017a2012-07-30 16:05:16 -040016};
17
Bryan Schumakerddda8e02012-07-30 16:05:23 -040018static int __init init_nfs_v2(void)
Bryan Schumakerab7017a2012-07-30 16:05:16 -040019{
20 register_nfs_version(&nfs_v2);
21 return 0;
22}
23
Bryan Schumakerddda8e02012-07-30 16:05:23 -040024static void __exit exit_nfs_v2(void)
Bryan Schumakerab7017a2012-07-30 16:05:16 -040025{
26 unregister_nfs_version(&nfs_v2);
27}
Bryan Schumakerddda8e02012-07-30 16:05:23 -040028
29MODULE_LICENSE("GPL");
30
31module_init(init_nfs_v2);
32module_exit(exit_nfs_v2);