Lines Matching refs:nthreads
690 int nfsd_get_nrthreads(int n, int *nthreads, struct net *net) in nfsd_get_nrthreads() argument
697 nthreads[i] = nn->nfsd_serv->sv_pools[i].sp_nrthreads; in nfsd_get_nrthreads()
726 int nfsd_set_nrthreads(int n, int *nthreads, struct net *net) in nfsd_set_nrthreads() argument
744 nthreads[i] = min(nthreads[i], NFSD_MAXSERVS); in nfsd_set_nrthreads()
745 tot += nthreads[i]; in nfsd_set_nrthreads()
750 int new = nthreads[i] * NFSD_MAXSERVS / tot; in nfsd_set_nrthreads()
751 tot -= (nthreads[i] - new); in nfsd_set_nrthreads()
752 nthreads[i] = new; in nfsd_set_nrthreads()
755 nthreads[i]--; in nfsd_set_nrthreads()
764 if (nthreads[0] == 0) in nfsd_set_nrthreads()
765 nthreads[0] = 1; in nfsd_set_nrthreads()
772 nthreads[i]); in nfsd_set_nrthreads()