Lines Matching refs:nthreads
714 int nfsd_get_nrthreads(int n, int *nthreads, struct net *net) in nfsd_get_nrthreads() argument
721 nthreads[i] = nn->nfsd_serv->sv_pools[i].sp_nrthreads; in nfsd_get_nrthreads()
727 int nfsd_set_nrthreads(int n, int *nthreads, struct net *net) in nfsd_set_nrthreads() argument
745 nthreads[i] = min(nthreads[i], NFSD_MAXSERVS); in nfsd_set_nrthreads()
746 tot += nthreads[i]; in nfsd_set_nrthreads()
751 int new = nthreads[i] * NFSD_MAXSERVS / tot; in nfsd_set_nrthreads()
752 tot -= (nthreads[i] - new); in nfsd_set_nrthreads()
753 nthreads[i] = new; in nfsd_set_nrthreads()
756 nthreads[i]--; in nfsd_set_nrthreads()
765 if (nthreads[0] == 0) in nfsd_set_nrthreads()
766 nthreads[0] = 1; in nfsd_set_nrthreads()
773 nthreads[i]); in nfsd_set_nrthreads()