Commit | Line | Data |
---|---|---|
ab7017a3 BS |
1 | /* |
2 | * Copyright (c) 2012 Netapp, Inc. All rights reserved. | |
3 | */ | |
4 | #include <linux/module.h> | |
5 | #include <linux/nfs_fs.h> | |
6 | #include "internal.h" | |
7 | #include "nfs.h" | |
8 | ||
9 | static struct nfs_subversion nfs_v2 = { | |
10 | .owner = THIS_MODULE, | |
11 | .nfs_fs = &nfs_fs_type, | |
12 | .rpc_vers = &nfs_version2, | |
13 | .rpc_ops = &nfs_v2_clientops, | |
6a74490d | 14 | .sops = &nfs_sops, |
ab7017a3 BS |
15 | }; |
16 | ||
17 | int __init init_nfs_v2(void) | |
18 | { | |
19 | register_nfs_version(&nfs_v2); | |
20 | return 0; | |
21 | } | |
22 | ||
23 | void exit_nfs_v2(void) | |
24 | { | |
25 | unregister_nfs_version(&nfs_v2); | |
26 | } |