Lines Matching refs:nthreads
542 int nfsd_get_nrthreads(int n, int *nthreads, struct net *net) in nfsd_get_nrthreads() argument
549 nthreads[i] = nn->nfsd_serv->sv_pools[i].sp_nrthreads; in nfsd_get_nrthreads()
567 int nfsd_set_nrthreads(int n, int *nthreads, struct net *net) in nfsd_set_nrthreads() argument
585 nthreads[i] = min(nthreads[i], NFSD_MAXSERVS); in nfsd_set_nrthreads()
586 tot += nthreads[i]; in nfsd_set_nrthreads()
591 int new = nthreads[i] * NFSD_MAXSERVS / tot; in nfsd_set_nrthreads()
592 tot -= (nthreads[i] - new); in nfsd_set_nrthreads()
593 nthreads[i] = new; in nfsd_set_nrthreads()
596 nthreads[i]--; in nfsd_set_nrthreads()
605 if (nthreads[0] == 0) in nfsd_set_nrthreads()
606 nthreads[0] = 1; in nfsd_set_nrthreads()
612 &nn->nfsd_serv->sv_pools[i], nthreads[i]); in nfsd_set_nrthreads()