Lines Matching refs:net
50 static void nlm_gc_hosts(struct net *net);
61 struct net *net; /* network namespace to bind */ member
163 host->net = ni->net; in nlm_alloc_host()
177 struct lockd_net *ln = net_generic(host->net, lockd_net_id); in nlm_destroy_host_locked()
215 struct net *net) in nlmclnt_lookup_host() argument
226 .net = net, in nlmclnt_lookup_host()
231 struct lockd_net *ln = net_generic(net, lockd_net_id); in nlmclnt_lookup_host()
241 if (host->net != net) in nlmclnt_lookup_host()
329 struct net *net = SVC_NET(rqstp); in nlmsvc_lookup_host() local
338 .net = net, in nlmsvc_lookup_host()
340 struct lockd_net *ln = net_generic(net, lockd_net_id); in nlmsvc_lookup_host()
349 nlm_gc_hosts(net); in nlmsvc_lookup_host()
353 if (host->net != net) in nlmsvc_lookup_host()
447 .net = host->net, in nlm_bind_host()
568 static void nlm_complain_hosts(struct net *net) in nlm_complain_hosts() argument
573 if (net) { in nlm_complain_hosts()
574 struct lockd_net *ln = net_generic(net, lockd_net_id); in nlm_complain_hosts()
578 printk(KERN_WARNING "lockd: couldn't shutdown host module for net %p!\n", net); in nlm_complain_hosts()
579 dprintk("lockd: %lu hosts left in net %p:\n", ln->nrhosts, net); in nlm_complain_hosts()
588 if (net && host->net != net) in nlm_complain_hosts()
592 host->h_inuse, host->h_expires, host->net); in nlm_complain_hosts()
597 nlm_shutdown_hosts_net(struct net *net) in nlm_shutdown_hosts_net() argument
605 dprintk("lockd: nuking all hosts in net %p...\n", net); in nlm_shutdown_hosts_net()
607 if (net && host->net != net) in nlm_shutdown_hosts_net()
617 nlm_gc_hosts(net); in nlm_shutdown_hosts_net()
620 nlm_complain_hosts(net); in nlm_shutdown_hosts_net()
640 nlm_gc_hosts(struct net *net) in nlm_gc_hosts() argument
646 dprintk("lockd: host garbage collection for net %p\n", net); in nlm_gc_hosts()
648 if (net && host->net != net) in nlm_gc_hosts()
654 nlmsvc_mark_resources(net); in nlm_gc_hosts()
657 if (net && host->net != net) in nlm_gc_hosts()
664 host->h_inuse, host->h_expires, host->net); in nlm_gc_hosts()
670 if (net) { in nlm_gc_hosts()
671 struct lockd_net *ln = net_generic(net, lockd_net_id); in nlm_gc_hosts()