Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (c) 2012 Netapp, Inc. All rights reserved.
0004  */
0005 #include <linux/module.h>
0006 #include <linux/nfs_fs.h>
0007 #include "internal.h"
0008 #include "nfs3_fs.h"
0009 #include "nfs.h"
0010 
0011 struct nfs_subversion nfs_v3 = {
0012     .owner = THIS_MODULE,
0013     .nfs_fs   = &nfs_fs_type,
0014     .rpc_vers = &nfs_version3,
0015     .rpc_ops  = &nfs_v3_clientops,
0016     .sops     = &nfs_sops,
0017 #ifdef CONFIG_NFS_V3_ACL
0018     .xattr    = nfs3_xattr_handlers,
0019 #endif
0020 };
0021 
0022 static int __init init_nfs_v3(void)
0023 {
0024     register_nfs_version(&nfs_v3);
0025     return 0;
0026 }
0027 
0028 static void __exit exit_nfs_v3(void)
0029 {
0030     unregister_nfs_version(&nfs_v3);
0031 }
0032 
0033 MODULE_LICENSE("GPL");
0034 
0035 module_init(init_nfs_v3);
0036 module_exit(exit_nfs_v3);