Lines Matching refs:nn

147 	struct nfsd_net *nn = net_generic(net, nfsd_net_id);  in exports_net_open()  local
154 seq->private = nn->svc_export_cache; in exports_net_open()
180 struct nfsd_net *nn = net_generic(inode->i_sb->s_fs_info, nfsd_net_id); in nfsd_pool_stats_open() local
182 return svc_pool_stats_open(&nn->nfsd_info, file); in nfsd_pool_stats_open()
525 nfsd_print_version_support(struct nfsd_net *nn, char *buf, int remaining, in nfsd_print_version_support() argument
529 bool supported = !!nfsd_vers(nn, vers, NFSD_TEST); in nfsd_print_version_support()
532 !nfsd_minorversion(nn, minor, NFSD_TEST)) in nfsd_print_version_support()
552 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in __write_versions() local
555 if (nn->nfsd_serv) in __write_versions()
590 nfsd_vers(nn, num, cmd); in __write_versions()
594 if (nfsd_minorversion(nn, minor, cmd) < 0) in __write_versions()
596 } else if ((cmd == NFSD_SET) != nfsd_vers(nn, num, NFSD_TEST)) { in __write_versions()
603 while (nfsd_minorversion(nn, minor, cmd) >= 0) in __write_versions()
617 nfsd_reset_versions(nn); in __write_versions()
625 if (!nfsd_vers(nn, num, NFSD_AVAIL)) in __write_versions()
630 len = nfsd_print_version_support(nn, buf, remaining, in __write_versions()
697 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in __write_ports_names() local
699 if (nn->nfsd_serv == NULL) in __write_ports_names()
701 return svc_xprt_names(nn->nfsd_serv, buf, SIMPLE_TRANSACTION_LIMIT); in __write_ports_names()
713 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in __write_ports_addfd() local
725 serv = nn->nfsd_serv; in __write_ports_addfd()
728 if (!serv->sv_nrthreads && list_empty(&nn->nfsd_serv->sv_permsocks)) in __write_ports_addfd()
743 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in __write_ports_addxprt() local
757 serv = nn->nfsd_serv; in __write_ports_addxprt()
776 if (!serv->sv_nrthreads && list_empty(&nn->nfsd_serv->sv_permsocks)) in __write_ports_addxprt()
877 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_maxblksize() local
893 if (nn->nfsd_serv) { in write_maxblksize()
928 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_maxconn() local
929 unsigned int maxconn = nn->max_connections; in write_maxconn()
937 nn->max_connections = maxconn; in write_maxconn()
945 time64_t *time, struct nfsd_net *nn) in __nfsd4_write_time() argument
952 if (nn->nfsd_serv) in __nfsd4_write_time()
981 time64_t *time, struct nfsd_net *nn) in nfsd4_write_time() argument
986 rv = __nfsd4_write_time(file, buf, size, time, nn); in nfsd4_write_time()
1014 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_leasetime() local
1015 return nfsd4_write_time(file, buf, size, &nn->nfsd4_lease, nn); in write_leasetime()
1030 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_gracetime() local
1031 return nfsd4_write_time(file, buf, size, &nn->nfsd4_grace, nn); in write_gracetime()
1036 struct nfsd_net *nn) in __write_recoverydir() argument
1043 if (nn->nfsd_serv) in __write_recoverydir()
1088 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_recoverydir() local
1091 rv = __write_recoverydir(file, buf, size, nn); in write_recoverydir()
1119 struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); in write_v4_end_grace() local
1126 if (!nn->nfsd_serv) in write_v4_end_grace()
1129 nfsd4_end_grace(nn); in write_v4_end_grace()
1137 nn->grace_ended ? 'Y' : 'N'); in write_v4_end_grace()
1321 struct dentry *nfsd_client_mkdir(struct nfsd_net *nn, in nfsd_client_mkdir() argument
1332 dentry = nfsd_mkdir(nn->nfsd_client_dir, ncl, name); in nfsd_client_mkdir()
1351 struct nfsd_net *nn = net_generic(current->nsproxy->net_ns, in nfsd_fill_super() local
1396 nn->nfsd_client_dir = dentry; in nfsd_fill_super()
1556 struct nfsd_net *nn; in nfsd_nl_rpc_status_get_dumpit() local
1560 nn = net_generic(sock_net(skb->sk), nfsd_net_id); in nfsd_nl_rpc_status_get_dumpit()
1561 if (!nn->nfsd_serv) { in nfsd_nl_rpc_status_get_dumpit()
1568 for (i = 0; i < nn->nfsd_serv->sv_nrpools; i++) { in nfsd_nl_rpc_status_get_dumpit()
1576 &nn->nfsd_serv->sv_pools[i].sp_all_threads, in nfsd_nl_rpc_status_get_dumpit()
1658 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_nl_threads_set_doit() local
1693 if (nn->nfsd_serv && nn->nfsd_serv->sv_nrthreads) in nfsd_nl_threads_set_doit()
1704 nn->nfsd4_grace = gracetime; in nfsd_nl_threads_set_doit()
1714 nn->nfsd4_lease = leasetime; in nfsd_nl_threads_set_doit()
1741 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_nl_threads_get_doit() local
1758 nn->nfsd4_grace) || in nfsd_nl_threads_get_doit()
1760 nn->nfsd4_lease) || in nfsd_nl_threads_get_doit()
1762 nn->nfsd_name); in nfsd_nl_threads_get_doit()
1766 if (nn->nfsd_serv) { in nfsd_nl_threads_get_doit()
1770 struct svc_pool *sp = &nn->nfsd_serv->sv_pools[i]; in nfsd_nl_threads_get_doit()
1807 struct nfsd_net *nn; in nfsd_nl_version_set_doit() local
1815 nn = net_generic(genl_info_net(info), nfsd_net_id); in nfsd_nl_version_set_doit()
1816 if (nn->nfsd_serv) { in nfsd_nl_version_set_doit()
1822 nfsd_vers(nn, 2, NFSD_CLEAR); in nfsd_nl_version_set_doit()
1823 nfsd_vers(nn, 3, NFSD_CLEAR); in nfsd_nl_version_set_doit()
1825 nfsd_minorversion(nn, i, NFSD_CLEAR); in nfsd_nl_version_set_doit()
1850 nfsd_minorversion(nn, minor, enabled ? NFSD_SET : NFSD_CLEAR); in nfsd_nl_version_set_doit()
1855 nfsd_vers(nn, major, enabled ? NFSD_SET : NFSD_CLEAR); in nfsd_nl_version_set_doit()
1876 struct nfsd_net *nn; in nfsd_nl_version_get_doit() local
1891 nn = net_generic(genl_info_net(info), nfsd_net_id); in nfsd_nl_version_get_doit()
1923 if (nfsd_vers(nn, i, NFSD_TEST) && in nfsd_nl_version_get_doit()
1924 (i < 4 || nfsd_minorversion(nn, j, NFSD_TEST)) && in nfsd_nl_version_get_doit()
1961 struct nfsd_net *nn; in nfsd_nl_listener_set_doit() local
1972 nn = net_generic(net, nfsd_net_id); in nfsd_nl_listener_set_doit()
1973 serv = nn->nfsd_serv; in nfsd_nl_listener_set_doit()
2087 if (!serv->sv_nrthreads && list_empty(&nn->nfsd_serv->sv_permsocks)) in nfsd_nl_listener_set_doit()
2107 struct nfsd_net *nn; in nfsd_nl_listener_get_doit() local
2122 nn = net_generic(genl_info_net(info), nfsd_net_id); in nfsd_nl_listener_get_doit()
2125 if (!nn->nfsd_serv) in nfsd_nl_listener_get_doit()
2128 serv = nn->nfsd_serv; in nfsd_nl_listener_get_doit()
2235 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_net_init() local
2245 retval = percpu_counter_init_many(nn->counter, 0, GFP_KERNEL, in nfsd_net_init()
2249 memset(&nn->nfsd_svcstats, 0, sizeof(nn->nfsd_svcstats)); in nfsd_net_init()
2250 nn->nfsd_svcstats.program = &nfsd_programs[0]; in nfsd_net_init()
2251 for (i = 0; i < sizeof(nn->nfsd_versions); i++) in nfsd_net_init()
2252 nn->nfsd_versions[i] = nfsd_support_version(i); in nfsd_net_init()
2253 for (i = 0; i < sizeof(nn->nfsd4_minorversions); i++) in nfsd_net_init()
2254 nn->nfsd4_minorversions[i] = nfsd_support_version(4); in nfsd_net_init()
2255 nn->nfsd_info.mutex = &nfsd_mutex; in nfsd_net_init()
2256 nn->nfsd_serv = NULL; in nfsd_net_init()
2257 nfsd4_init_leases_net(nn); in nfsd_net_init()
2258 get_random_bytes(&nn->siphash_key, sizeof(nn->siphash_key)); in nfsd_net_init()
2259 seqlock_init(&nn->writeverf_lock); in nfsd_net_init()
2262 INIT_LIST_HEAD(&nn->local_clients); in nfsd_net_init()
2284 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_net_pre_exit() local
2286 nfs_uuid_invalidate_clients(&nn->local_clients); in nfsd_net_pre_exit()
2297 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_net_exit() local
2300 percpu_counter_destroy_many(nn->counter, NFSD_STATS_COUNTERS_NUM); in nfsd_net_exit()