Lines Matching refs:nthreads
541 int nfsd_get_nrthreads(int n, int *nthreads, struct net *net) in nfsd_get_nrthreads() argument
548 nthreads[i] = nn->nfsd_serv->sv_pools[i].sp_nrthreads; in nfsd_get_nrthreads()
566 int nfsd_set_nrthreads(int n, int *nthreads, struct net *net) in nfsd_set_nrthreads() argument
584 nthreads[i] = min(nthreads[i], NFSD_MAXSERVS); in nfsd_set_nrthreads()
585 tot += nthreads[i]; in nfsd_set_nrthreads()
590 int new = nthreads[i] * NFSD_MAXSERVS / tot; in nfsd_set_nrthreads()
591 tot -= (nthreads[i] - new); in nfsd_set_nrthreads()
592 nthreads[i] = new; in nfsd_set_nrthreads()
595 nthreads[i]--; in nfsd_set_nrthreads()
604 if (nthreads[0] == 0) in nfsd_set_nrthreads()
605 nthreads[0] = 1; in nfsd_set_nrthreads()
611 &nn->nfsd_serv->sv_pools[i], nthreads[i]); in nfsd_set_nrthreads()