nfs3super.c 668 B

12345678910111213141516171819202122232425262728293031323334
  1. // SPDX-License-Identifier: GPL-2.0-only
  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"
  8. #include "nfs3_fs.h"
  9. #include "nfs.h"
  10. struct nfs_subversion nfs_v3 = {
  11. .owner = THIS_MODULE,
  12. .nfs_fs = &nfs_fs_type,
  13. .rpc_vers = &nfs_version3,
  14. .rpc_ops = &nfs_v3_clientops,
  15. .sops = &nfs_sops,
  16. };
  17. static int __init init_nfs_v3(void)
  18. {
  19. register_nfs_version(&nfs_v3);
  20. return 0;
  21. }
  22. static void __exit exit_nfs_v3(void)
  23. {
  24. unregister_nfs_version(&nfs_v3);
  25. }
  26. MODULE_DESCRIPTION("NFSv3 client support");
  27. MODULE_LICENSE("GPL");
  28. module_init(init_nfs_v3);
  29. module_exit(exit_nfs_v3);