Home
last modified time | relevance | path

Searched refs:nthreads (Results 1 – 2 of 2) sorted by relevance

/fs/nfsd/
Dnfssvc.c687 int nfsd_get_nrthreads(int n, int *nthreads, struct net *net) in nfsd_get_nrthreads() argument
694 nthreads[i] = nn->nfsd_serv->sv_pools[i].sp_nrthreads; in nfsd_get_nrthreads()
712 int nfsd_set_nrthreads(int n, int *nthreads, struct net *net) in nfsd_set_nrthreads() argument
730 nthreads[i] = min(nthreads[i], NFSD_MAXSERVS); in nfsd_set_nrthreads()
731 tot += nthreads[i]; in nfsd_set_nrthreads()
736 int new = nthreads[i] * NFSD_MAXSERVS / tot; in nfsd_set_nrthreads()
737 tot -= (nthreads[i] - new); in nfsd_set_nrthreads()
738 nthreads[i] = new; in nfsd_set_nrthreads()
741 nthreads[i]--; in nfsd_set_nrthreads()
750 if (nthreads[0] == 0) in nfsd_set_nrthreads()
[all …]
Dnfsctl.c488 int *nthreads; in write_pool_threads() local
504 nthreads = kcalloc(npools, sizeof(int), GFP_KERNEL); in write_pool_threads()
506 if (nthreads == NULL) in write_pool_threads()
511 rv = get_int(&mesg, &nthreads[i]); in write_pool_threads()
517 if (nthreads[i] < 0) in write_pool_threads()
520 rv = nfsd_set_nrthreads(i, nthreads, net); in write_pool_threads()
525 rv = nfsd_get_nrthreads(npools, nthreads, net); in write_pool_threads()
532 snprintf(mesg, size, "%d%c", nthreads[i], (i == npools-1 ? '\n' : ' ')); in write_pool_threads()
539 kfree(nthreads); in write_pool_threads()