Lines Matching refs:cd

51 static void expkey_request(struct cache_detail *cd,  in expkey_request()  argument
66 static struct svc_expkey *svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new,
68 static struct svc_expkey *svc_expkey_lookup(struct cache_detail *cd, struct svc_expkey *);
70 static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen) in expkey_parse() argument
126 ek = svc_expkey_lookup(cd, &key); in expkey_parse()
140 ek = svc_expkey_update(cd, &key, ek); in expkey_parse()
150 ek = svc_expkey_update(cd, &key, ek); in expkey_parse()
158 cache_put(&ek->h, cd); in expkey_parse()
166 struct cache_detail *cd, in expkey_show() argument
262 svc_expkey_lookup(struct cache_detail *cd, struct svc_expkey *item) in svc_expkey_lookup() argument
267 ch = sunrpc_cache_lookup(cd, &item->h, hash); in svc_expkey_lookup()
275 svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new, in svc_expkey_update() argument
281 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); in svc_expkey_update()
319 static void svc_export_request(struct cache_detail *cd, in svc_export_request() argument
509 static int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen) in svc_export_parse() argument
548 exp.cd = cd; in svc_export_parse()
657 struct cache_detail *cd, in svc_export_show() argument
711 new->cd = item->cd; in svc_export_init()
781 ch = sunrpc_cache_lookup(exp->cd, &exp->h, hash); in svc_export_lookup()
794 ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); in svc_export_update()
803 exp_find_key(struct cache_detail *cd, struct auth_domain *clp, int fsid_type, in exp_find_key() argument
816 ek = svc_expkey_lookup(cd, &key); in exp_find_key()
819 err = cache_check(cd, &ek->h, reqp); in exp_find_key()
826 exp_get_by_name(struct cache_detail *cd, struct auth_domain *clp, in exp_get_by_name() argument
837 key.cd = cd; in exp_get_by_name()
842 err = cache_check(cd, &exp->h, reqp); in exp_get_by_name()
852 exp_parent(struct cache_detail *cd, struct auth_domain *clp, struct path *path) in exp_parent() argument
855 struct svc_export *exp = exp_get_by_name(cd, clp, path, NULL); in exp_parent()
861 exp = exp_get_by_name(cd, clp, path, NULL); in exp_parent()
885 struct cache_detail *cd = nn->svc_export_cache; in exp_rootfh() local
898 exp = exp_parent(cd, clp, &path); in exp_rootfh()
920 static struct svc_export *exp_find(struct cache_detail *cd, in exp_find() argument
925 struct nfsd_net *nn = net_generic(cd->net, nfsd_net_id); in exp_find()
930 exp = exp_get_by_name(cd, clp, &ek->ek_path, reqp); in exp_find()
974 struct cache_detail *cd = nn->svc_export_cache; in rqst_exp_get_by_name() local
980 exp = exp_get_by_name(cd, rqstp->rq_client, path, &rqstp->rq_chandle); in rqst_exp_get_by_name()
992 gssexp = exp_get_by_name(cd, rqstp->rq_gssclient, path, &rqstp->rq_chandle); in rqst_exp_get_by_name()
1005 struct cache_detail *cd = nn->svc_export_cache; in rqst_exp_find() local
1011 exp = exp_find(cd, rqstp->rq_client, fsid_type, in rqst_exp_find()
1024 gssexp = exp_find(cd, rqstp->rq_gssclient, fsid_type, fsidv, in rqst_exp_find()
1190 struct cache_detail *cd = m->private; in e_show() local
1199 if (cache_check(cd, &exp->h, NULL)) in e_show()
1202 return svc_export_show(m, cd, cp); in e_show()