Lines Matching refs:vers
145 nfsd_support_version(int vers) in nfsd_support_version() argument
147 if (vers >= NFSD_MINVERS && vers < NFSD_NRVERS) in nfsd_support_version()
148 return nfsd_version[vers] != NULL; in nfsd_support_version()
155 bool *vers = kmalloc_array(NFSD_NRVERS, sizeof(bool), GFP_KERNEL); in nfsd_alloc_versions() local
158 if (vers) { in nfsd_alloc_versions()
161 vers[i] = nfsd_support_version(i); in nfsd_alloc_versions()
163 return vers; in nfsd_alloc_versions()
169 bool *vers = kmalloc_array(NFSD_SUPPORTED_MINOR_VERSION + 1, in nfsd_alloc_minorversions() local
173 if (vers) { in nfsd_alloc_minorversions()
176 vers[i] = nfsd_support_version(4); in nfsd_alloc_minorversions()
178 return vers; in nfsd_alloc_minorversions()
201 int nfsd_vers(struct nfsd_net *nn, int vers, enum vers_op change) in nfsd_vers() argument
203 if (vers < NFSD_MINVERS || vers >= NFSD_NRVERS) in nfsd_vers()
208 nn->nfsd_versions[vers] = nfsd_support_version(vers); in nfsd_vers()
213 nn->nfsd_versions[vers] = false; in nfsd_vers()
217 return nn->nfsd_versions[vers]; in nfsd_vers()
220 return nfsd_support_version(vers); in nfsd_vers()
833 nfsd_support_acl_version(int vers) in nfsd_support_acl_version() argument
835 if (vers >= NFSD_ACL_MINVERS && vers < NFSD_ACL_NRVERS) in nfsd_support_acl_version()
836 return nfsd_acl_version[vers] != NULL; in nfsd_support_acl_version()