nfs2super.c 569 B

12345678910111213141516171819202122232425262728293031
  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. static struct nfs_subversion nfs_v2 = {
  9. .owner = THIS_MODULE,
  10. .nfs_fs = &nfs_fs_type,
  11. .rpc_vers = &nfs_version2,
  12. .rpc_ops = &nfs_v2_clientops,
  13. .sops = &nfs_sops,
  14. };
  15. static int __init init_nfs_v2(void)
  16. {
  17. register_nfs_version(&nfs_v2);
  18. return 0;
  19. }
  20. static void __exit exit_nfs_v2(void)
  21. {
  22. unregister_nfs_version(&nfs_v2);
  23. }
  24. MODULE_LICENSE("GPL");
  25. module_init(init_nfs_v2);
  26. module_exit(exit_nfs_v2);