Lines Matching refs:nfs
86 struct nfs_subversion *nfs; in find_nfs_version() local
89 list_for_each_entry(nfs, &nfs_versions, list) { in find_nfs_version()
90 if (nfs->rpc_ops->version == version) { in find_nfs_version()
92 return nfs; in find_nfs_version()
102 struct nfs_subversion *nfs = find_nfs_version(version); in get_nfs_version() local
104 if (IS_ERR(nfs)) { in get_nfs_version()
107 nfs = find_nfs_version(version); in get_nfs_version()
111 if (!IS_ERR(nfs) && !try_module_get(nfs->owner)) in get_nfs_version()
113 return nfs; in get_nfs_version()
116 void put_nfs_version(struct nfs_subversion *nfs) in put_nfs_version() argument
118 module_put(nfs->owner); in put_nfs_version()
121 void register_nfs_version(struct nfs_subversion *nfs) in register_nfs_version() argument
125 list_add(&nfs->list, &nfs_versions); in register_nfs_version()
126 nfs_version[nfs->rpc_ops->version] = nfs->rpc_vers; in register_nfs_version()
132 void unregister_nfs_version(struct nfs_subversion *nfs) in unregister_nfs_version() argument
136 nfs_version[nfs->rpc_ops->version] = NULL; in unregister_nfs_version()
137 list_del(&nfs->list); in unregister_nfs_version()