nfs3super.c 690 B

123456789101112131415161718192021222324252627282930313233343536
  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. #ifdef CONFIG_NFS_V3_ACL
  17. .xattr = nfs3_xattr_handlers,
  18. #endif
  19. };
  20. static int __init init_nfs_v3(void)
  21. {
  22. register_nfs_version(&nfs_v3);
  23. return 0;
  24. }
  25. static void __exit exit_nfs_v3(void)
  26. {
  27. unregister_nfs_version(&nfs_v3);
  28. }
  29. MODULE_LICENSE("GPL");
  30. module_init(init_nfs_v3);
  31. module_exit(exit_nfs_v3);