Lines Matching refs:cd
54 static int expkey_upcall(struct cache_detail *cd, struct cache_head *h) in expkey_upcall() argument
56 return sunrpc_cache_pipe_upcall(cd, h); in expkey_upcall()
59 static void expkey_request(struct cache_detail *cd, in expkey_request() argument
74 static struct svc_expkey *svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new,
76 static struct svc_expkey *svc_expkey_lookup(struct cache_detail *cd, struct svc_expkey *);
78 static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen) in expkey_parse() argument
134 ek = svc_expkey_lookup(cd, &key); in expkey_parse()
148 ek = svc_expkey_update(cd, &key, ek); in expkey_parse()
160 ek = svc_expkey_update(cd, &key, ek); in expkey_parse()
170 cache_put(&ek->h, cd); in expkey_parse()
178 struct cache_detail *cd, in expkey_show() argument
287 svc_expkey_lookup(struct cache_detail *cd, struct svc_expkey *item) in svc_expkey_lookup() argument
292 ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); in svc_expkey_lookup()
300 svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new, in svc_expkey_update() argument
306 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); in svc_expkey_update()
361 static int svc_export_upcall(struct cache_detail *cd, struct cache_head *h) in svc_export_upcall() argument
363 return sunrpc_cache_pipe_upcall(cd, h); in svc_export_upcall()
366 static void svc_export_request(struct cache_detail *cd, in svc_export_request() argument
570 static int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen) in svc_export_parse() argument
609 exp.cd = cd; in svc_export_parse()
729 struct cache_detail *cd, in svc_export_show() argument
798 new->cd = item->cd; in svc_export_init()
875 ch = sunrpc_cache_lookup_rcu(exp->cd, &exp->h, hash); in svc_export_lookup()
888 ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); in svc_export_update()
897 exp_find_key(struct cache_detail *cd, struct auth_domain *clp, int fsid_type, in exp_find_key() argument
910 ek = svc_expkey_lookup(cd, &key); in exp_find_key()
913 err = cache_check(cd, &ek->h, reqp); in exp_find_key()
922 exp_get_by_name(struct cache_detail *cd, struct auth_domain *clp, in exp_get_by_name() argument
933 key.cd = cd; in exp_get_by_name()
938 err = cache_check(cd, &exp->h, reqp); in exp_get_by_name()
950 exp_parent(struct cache_detail *cd, struct auth_domain *clp, struct path *path) in exp_parent() argument
953 struct svc_export *exp = exp_get_by_name(cd, clp, path, NULL); in exp_parent()
959 exp = exp_get_by_name(cd, clp, path, NULL); in exp_parent()
983 struct cache_detail *cd = nn->svc_export_cache; in exp_rootfh() local
996 exp = exp_parent(cd, clp, &path); in exp_rootfh()
1018 static struct svc_export *exp_find(struct cache_detail *cd, in exp_find() argument
1023 struct nfsd_net *nn = net_generic(cd->net, nfsd_net_id); in exp_find()
1028 exp = exp_get_by_name(cd, clp, &ek->ek_path, reqp); in exp_find()
1082 struct cache_detail *cd = nn->svc_export_cache; in rqst_exp_get_by_name() local
1088 exp = exp_get_by_name(cd, rqstp->rq_client, path, &rqstp->rq_chandle); in rqst_exp_get_by_name()
1100 gssexp = exp_get_by_name(cd, rqstp->rq_gssclient, path, &rqstp->rq_chandle); in rqst_exp_get_by_name()
1113 struct cache_detail *cd = nn->svc_export_cache; in rqst_exp_find() local
1119 exp = exp_find(cd, rqstp->rq_client, fsid_type, in rqst_exp_find()
1132 gssexp = exp_find(cd, rqstp->rq_gssclient, fsid_type, fsidv, in rqst_exp_find()
1301 struct cache_detail *cd = m->private; in e_show() local
1314 if (cache_check(cd, &exp->h, NULL)) in e_show()
1317 return svc_export_show(m, cd, cp); in e_show()