Lines Matching refs:vers
147 nfsd_support_version(int vers) in nfsd_support_version() argument
149 if (vers >= NFSD_MINVERS && vers < NFSD_NRVERS) in nfsd_support_version()
150 return nfsd_version[vers] != NULL; in nfsd_support_version()
157 bool *vers = kmalloc_array(NFSD_NRVERS, sizeof(bool), GFP_KERNEL); in nfsd_alloc_versions() local
160 if (vers) { in nfsd_alloc_versions()
163 vers[i] = nfsd_support_version(i); in nfsd_alloc_versions()
165 return vers; in nfsd_alloc_versions()
171 bool *vers = kmalloc_array(NFSD_SUPPORTED_MINOR_VERSION + 1, in nfsd_alloc_minorversions() local
175 if (vers) { in nfsd_alloc_minorversions()
178 vers[i] = nfsd_support_version(4); in nfsd_alloc_minorversions()
180 return vers; in nfsd_alloc_minorversions()
203 int nfsd_vers(struct nfsd_net *nn, int vers, enum vers_op change) in nfsd_vers() argument
205 if (vers < NFSD_MINVERS || vers >= NFSD_NRVERS) in nfsd_vers()
210 nn->nfsd_versions[vers] = nfsd_support_version(vers); in nfsd_vers()
215 nn->nfsd_versions[vers] = false; in nfsd_vers()
219 return nn->nfsd_versions[vers]; in nfsd_vers()
222 return nfsd_support_version(vers); in nfsd_vers()
820 nfsd_support_acl_version(int vers) in nfsd_support_acl_version() argument
822 if (vers >= NFSD_ACL_MINVERS && vers < NFSD_ACL_NRVERS) in nfsd_support_acl_version()
823 return nfsd_acl_version[vers] != NULL; in nfsd_support_acl_version()