nfs2super.c 610 B

1234567891011121314151617181920212223242526272829303132
  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 "nfs.h"
  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,
  14. .sops = &nfs_sops,
  15. };
  16. static int __init init_nfs_v2(void)
  17. {
  18. register_nfs_version(&nfs_v2);
  19. return 0;
  20. }
  21. static void __exit exit_nfs_v2(void)
  22. {
  23. unregister_nfs_version(&nfs_v2);
  24. }
  25. MODULE_LICENSE("GPL");
  26. module_init(init_nfs_v2);
  27. module_exit(exit_nfs_v2);