Home
last modified time | relevance | path

Searched refs:net (Results 1 – 25 of 58) sorted by relevance

123

/fs/proc/
Dproc_net.c29 static inline struct net *PDE_NET(struct proc_dir_entry *pde) in PDE_NET()
34 static struct net *get_proc_net(const struct inode *inode) in get_proc_net()
42 struct net *net; in seq_open_net() local
47 net = get_proc_net(ino); in seq_open_net()
48 if (net == NULL) in seq_open_net()
53 put_net(net); in seq_open_net()
57 p->net = net; in seq_open_net()
67 struct net *net; in single_open_net() local
70 net = get_proc_net(inode); in single_open_net()
71 if (net == NULL) in single_open_net()
[all …]
/fs/nfsd/
Dnfssvc.c174 int nfsd_nrthreads(struct net *net) in nfsd_nrthreads() argument
177 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_nrthreads()
186 static int nfsd_init_socks(struct net *net) in nfsd_init_socks() argument
189 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_init_socks()
194 error = svc_create_xprt(nn->nfsd_serv, "udp", net, PF_INET, NFS_PORT, in nfsd_init_socks()
199 error = svc_create_xprt(nn->nfsd_serv, "tcp", net, PF_INET, NFS_PORT, in nfsd_init_socks()
243 static int nfsd_startup_net(int nrservs, struct net *net) in nfsd_startup_net() argument
245 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_startup_net()
254 ret = nfsd_init_socks(net); in nfsd_startup_net()
257 ret = lockd_up(net); in nfsd_startup_net()
[all …]
Dnfsctl.c129 static int exports_net_open(struct net *net, struct file *file) in exports_net_open() argument
133 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in exports_net_open()
249 struct net *net = file->f_dentry->d_sb->s_fs_info; in write_unlock_ip() local
262 if (rpc_pton(net, fo_path, size, sap, salen) == 0) in write_unlock_ip()
347 struct net *net = file->f_dentry->d_sb->s_fs_info; in write_filehandle() local
383 len = exp_rootfh(net, dom, path, &fh, maxsize); in write_filehandle()
427 struct net *net = file->f_dentry->d_sb->s_fs_info; in write_threads() local
436 rv = nfsd_svc(newthreads, net); in write_threads()
440 rv = nfsd_nrthreads(net); in write_threads()
478 struct net *net = file->f_dentry->d_sb->s_fs_info; in write_pool_threads() local
[all …]
Dnfs4recover.c56 int (*init)(struct net *);
57 void (*exit)(struct net *);
162 nfsd4_client_tracking_exit(clp->net); in legacy_recdir_name_error()
174 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in nfsd4_create_clid_dir()
343 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in nfsd4_remove_clid_dir()
432 nfsd4_recdir_load(struct net *net) { in nfsd4_recdir_load() argument
434 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd4_recdir_load()
451 nfsd4_init_recdir(struct net *net) in nfsd4_init_recdir() argument
453 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd4_init_recdir()
486 nfs4_legacy_state_init(struct net *net) in nfs4_legacy_state_init() argument
[all …]
Dnfsd.h67 int nfsd_svc(int nrservs, struct net *net);
70 int nfsd_nrthreads(struct net *);
71 int nfsd_nrpools(struct net *);
72 int nfsd_get_nrthreads(int n, int *, struct net *);
73 int nfsd_set_nrthreads(int n, int *, struct net *);
77 void nfsd_destroy(struct net *net);
96 int nfsd_create_serv(struct net *net);
114 int nfs4_state_start_net(struct net *net);
116 void nfs4_state_shutdown_net(struct net *net);
125 static inline int nfs4_state_start_net(struct net *net) { return 0; } in nfs4_state_start_net() argument
[all …]
Didmap.h45 int nfsd_idmap_init(struct net *);
46 void nfsd_idmap_shutdown(struct net *);
48 static inline int nfsd_idmap_init(struct net *net) in nfsd_idmap_init() argument
52 static inline void nfsd_idmap_shutdown(struct net *net) in nfsd_idmap_shutdown() argument
Dnfs4idmap.c456 nfsd_idmap_init(struct net *net) in nfsd_idmap_init() argument
459 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_idmap_init()
461 nn->idtoname_cache = cache_create_net(&idtoname_cache_template, net); in nfsd_idmap_init()
464 rv = cache_register_net(nn->idtoname_cache, net); in nfsd_idmap_init()
467 nn->nametoid_cache = cache_create_net(&nametoid_cache_template, net); in nfsd_idmap_init()
472 rv = cache_register_net(nn->nametoid_cache, net); in nfsd_idmap_init()
478 cache_destroy_net(nn->nametoid_cache, net); in nfsd_idmap_init()
480 cache_unregister_net(nn->idtoname_cache, net); in nfsd_idmap_init()
482 cache_destroy_net(nn->idtoname_cache, net); in nfsd_idmap_init()
487 nfsd_idmap_shutdown(struct net *net) in nfsd_idmap_shutdown() argument
[all …]
Dexport.c831 exp_rootfh(struct net *net, svc_client *clp, char *name, in exp_rootfh() argument
839 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in exp_rootfh()
880 struct nfsd_net *nn = net_generic(cd->net, nfsd_net_id); in exp_find()
1236 nfsd_export_init(struct net *net) in nfsd_export_init() argument
1239 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_export_init()
1241 dprintk("nfsd: initializing export module (net: %p).\n", net); in nfsd_export_init()
1243 nn->svc_export_cache = cache_create_net(&svc_export_cache_template, net); in nfsd_export_init()
1246 rv = cache_register_net(nn->svc_export_cache, net); in nfsd_export_init()
1250 nn->svc_expkey_cache = cache_create_net(&svc_expkey_cache_template, net); in nfsd_export_init()
1255 rv = cache_register_net(nn->svc_expkey_cache, net); in nfsd_export_init()
[all …]
Dstate.h291 struct net *net; member
456 extern __be32 nfs4_preprocess_stateid_op(struct net *net,
484 extern int nfsd4_client_tracking_init(struct net *net);
485 extern void nfsd4_client_tracking_exit(struct net *net);
Dnfs4state.c147 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in mark_client_expired()
168 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in renew_client_locked()
189 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in renew_client()
206 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in put_client_renew()
977 struct nfsd_net *nn = net_generic(ses->se_client->net, nfsd_net_id); in free_session()
1025 find_in_sessionid_hashtbl(struct nfs4_sessionid *sessionid, struct net *net) in find_in_sessionid_hashtbl() argument
1029 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in find_in_sessionid_hashtbl()
1090 struct nfsd_net __maybe_unused *nn = net_generic(clp->net, nfsd_net_id); in free_client()
1126 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in destroy_client()
1311 struct net *net = SVC_NET(rqstp); in create_client() local
[all …]
/fs/lockd/
Dsvc.c100 static void set_grace_period(struct net *net) in set_grace_period() argument
103 struct lockd_net *ln = net_generic(net, lockd_net_id); in set_grace_period()
105 locks_start_grace(net, &ln->lockd_manager); in set_grace_period()
113 struct net *net = &init_net; in restart_grace() local
114 struct lockd_net *ln = net_generic(net, lockd_net_id); in restart_grace()
119 set_grace_period(net); in restart_grace()
183 struct net *net, const int family, in create_lockd_listener() argument
188 xprt = svc_find_xprt(serv, name, net, family, 0); in create_lockd_listener()
190 return svc_create_xprt(serv, name, net, family, port, in create_lockd_listener()
196 static int create_lockd_family(struct svc_serv *serv, struct net *net, in create_lockd_family() argument
[all …]
Dhost.c50 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()
[all …]
Dclntlock.c59 status = lockd_up(nlm_init->net); in nlmclnt_init()
66 nlm_init->net); in nlmclnt_init()
68 lockd_down(nlm_init->net); in nlmclnt_init()
83 struct net *net = host->net; in nlmclnt_done() local
86 lockd_down(net); in nlmclnt_done()
229 struct net *net = host->net; in reclaimer() local
242 lockd_up(net); /* note: this cannot fail as lockd is already running */ in reclaimer()
293 lockd_down(net); in reclaimer()
Dgrace.c24 void locks_start_grace(struct net *net, struct lock_manager *lm) in locks_start_grace() argument
26 struct lockd_net *ln = net_generic(net, lockd_net_id); in locks_start_grace()
59 int locks_in_grace(struct net *net) in locks_in_grace() argument
61 struct lockd_net *ln = net_generic(net, lockd_net_id); in locks_in_grace()
Dmon.c68 static struct rpc_clnt *nsm_create(struct net *net) in nsm_create() argument
75 .net = net, in nsm_create()
105 static struct rpc_clnt *nsm_client_get(struct net *net) in nsm_client_get() argument
108 struct lockd_net *ln = net_generic(net, lockd_net_id); in nsm_client_get()
114 clnt = new = nsm_create(net); in nsm_client_get()
125 static void nsm_client_put(struct net *net) in nsm_client_put() argument
127 struct lockd_net *ln = net_generic(net, lockd_net_id); in nsm_client_put()
199 clnt = nsm_client_get(host->net); in nsm_monitor()
203 "status=%d, net=%p\n", status, host->net); in nsm_monitor()
239 struct lockd_net *ln = net_generic(host->net, lockd_net_id); in nsm_unmonitor()
[all …]
Dsvcsubs.c329 if ((hint->net == NULL) || in nlmsvc_mark_host()
330 (host->net == hint->net)) in nlmsvc_mark_host()
364 nlmsvc_mark_resources(struct net *net) in nlmsvc_mark_resources() argument
368 dprintk("lockd: nlmsvc_mark_resources for net %p\n", net); in nlmsvc_mark_resources()
369 hint.net = net; in nlmsvc_mark_resources()
/fs/nfs/
Dcallback.c42 static int nfs4_callback_up_net(struct svc_serv *serv, struct net *net) in nfs4_callback_up_net() argument
45 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs4_callback_up_net()
47 ret = svc_create_xprt(serv, "tcp", net, PF_INET, in nfs4_callback_up_net()
53 nn->nfs_callback_tcpport, PF_INET, net); in nfs4_callback_up_net()
55 ret = svc_create_xprt(serv, "tcp", net, PF_INET6, in nfs4_callback_up_net()
60 nn->nfs_callback_tcpport6, PF_INET6, net); in nfs4_callback_up_net()
102 static int nfs41_callback_up_net(struct svc_serv *serv, struct net *net) in nfs41_callback_up_net() argument
109 return svc_create_xprt(serv, "tcp-bc", net, PF_INET, 0, in nfs41_callback_up_net()
190 static int nfs41_callback_up_net(struct svc_serv *serv, struct net *net) in nfs41_callback_up_net() argument
253 static void nfs_callback_down_net(u32 minorversion, struct svc_serv *serv, struct net *net) in nfs_callback_down_net() argument
[all …]
Ddns_resolve.h19 static inline int nfs_dns_resolver_cache_init(struct net *net) in nfs_dns_resolver_cache_init() argument
24 static inline void nfs_dns_resolver_cache_destroy(struct net *net) in nfs_dns_resolver_cache_destroy() argument
29 extern int nfs_dns_resolver_cache_init(struct net *net);
30 extern void nfs_dns_resolver_cache_destroy(struct net *net);
33 extern ssize_t nfs_dns_resolve_name(struct net *net, char *name,
Ddns_resolve.c17 ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen, in nfs_dns_resolve_name() argument
26 ret = rpc_pton(net, ip_addr, ip_len, sa, salen); in nfs_dns_resolve_name()
233 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse()
331 ssize_t nfs_dns_resolve_name(struct net *net, char *name, in nfs_dns_resolve_name() argument
340 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs_dns_resolve_name()
372 int nfs_dns_resolver_cache_init(struct net *net) in nfs_dns_resolver_cache_init() argument
375 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs_dns_resolver_cache_init()
377 nn->nfs_dns_resolve = cache_create_net(&nfs_dns_resolve_template, net); in nfs_dns_resolver_cache_init()
381 err = nfs_cache_register_net(net, nn->nfs_dns_resolve); in nfs_dns_resolver_cache_init()
387 cache_destroy_net(nn->nfs_dns_resolve, net); in nfs_dns_resolver_cache_init()
[all …]
Dcache_lib.c126 int nfs_cache_register_net(struct net *net, struct cache_detail *cd) in nfs_cache_register_net() argument
132 pipefs_sb = rpc_get_sb_net(net); in nfs_cache_register_net()
135 rpc_put_sb_net(net); in nfs_cache_register_net()
148 void nfs_cache_unregister_net(struct net *net, struct cache_detail *cd) in nfs_cache_unregister_net() argument
152 pipefs_sb = rpc_get_sb_net(net); in nfs_cache_unregister_net()
155 rpc_put_sb_net(net); in nfs_cache_unregister_net()
Dcache_lib.h26 extern int nfs_cache_register_net(struct net *net, struct cache_detail *cd);
27 extern void nfs_cache_unregister_net(struct net *net, struct cache_detail *cd);
Dinternal.h75 struct net *net; member
117 struct net *net; member
132 struct net *net; member
148 extern void nfs_clients_init(struct net *net);
162 extern void nfs_cleanup_cb_ident_idr(struct net *);
165 extern struct nfs_client *nfs4_find_client_ident(struct net *, int);
167 nfs4_find_client_sessionid(struct net *, const struct sockaddr *,
Dnfs4client.c517 nfs4_find_client_ident(struct net *net, int cb_ident) in nfs4_find_client_ident() argument
520 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs4_find_client_ident()
564 nfs4_find_client_sessionid(struct net *net, const struct sockaddr *addr, in nfs4_find_client_sessionid() argument
568 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs4_find_client_sessionid()
594 nfs4_find_client_sessionid(struct net *net, const struct sockaddr *addr, in nfs4_find_client_sessionid() argument
611 u32 minorversion, struct net *net) in nfs4_set_client() argument
620 .net = net, in nfs4_set_client()
674 .net = mds_clp->cl_net, in nfs4_set_ds_client()
805 data->net); in nfs4_init_server()
Dclient.c182 clp->cl_net = get_net(cl_init->net); in nfs_alloc_client()
200 void nfs_cleanup_cb_ident_idr(struct net *net) in nfs_cleanup_cb_ident_idr() argument
202 struct nfs_net *nn = net_generic(net, nfs_net_id); in nfs_cleanup_cb_ident_idr()
222 void nfs_cleanup_cb_ident_idr(struct net *net) in nfs_cleanup_cb_ident_idr() argument
404 struct nfs_net *nn = net_generic(data->net, nfs_net_id); in nfs_match_client()
482 struct nfs_net *nn = net_generic(cl_init->net, nfs_net_id); in nfs_get_client()
581 .net = clp->cl_net, in nfs_create_rpc_client()
637 .net = clp->cl_net, in nfs_start_lockd()
744 .net = data->net, in nfs_init_server()
1173 void nfs_clients_init(struct net *net) in nfs_clients_init() argument
[all …]
/fs/nfs/blocklayout/
Dblocklayoutdm.c41 static void dev_remove(struct net *net, dev_t dev) in dev_remove() argument
52 struct nfs_net *nn = net_generic(net, nfs_net_id); in dev_remove()
93 dev_remove(bdev->net, bdev->bm_mdev->bd_dev); in nfs4_blk_metadev_release()

123