Lines Matching defs:cd

54 static int expkey_upcall(struct cache_detail *cd, struct cache_head *h)
56 return sunrpc_cache_pipe_upcall(cd, h);
59 static void expkey_request(struct cache_detail *cd,
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)
134 ek = svc_expkey_lookup(cd, &key);
148 ek = svc_expkey_update(cd, &key, ek);
160 ek = svc_expkey_update(cd, &key, ek);
170 cache_put(&ek->h, cd);
178 struct cache_detail *cd,
287 svc_expkey_lookup(struct cache_detail *cd, struct svc_expkey *item)
292 ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash);
300 svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new,
306 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash);
366 static int svc_export_upcall(struct cache_detail *cd, struct cache_head *h)
368 return sunrpc_cache_pipe_upcall(cd, h);
371 static void svc_export_request(struct cache_detail *cd,
596 static int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen)
633 exp.cd = cd;
756 struct cache_detail *cd,
827 new->cd = item->cd;
912 ch = sunrpc_cache_lookup_rcu(exp->cd, &exp->h, hash);
925 ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash);
934 exp_find_key(struct cache_detail *cd, struct auth_domain *clp, int fsid_type,
947 ek = svc_expkey_lookup(cd, &key);
950 err = cache_check(cd, &ek->h, reqp);
959 exp_get_by_name(struct cache_detail *cd, struct auth_domain *clp,
970 key.cd = cd;
975 err = cache_check(cd, &exp->h, reqp);
987 exp_parent(struct cache_detail *cd, struct auth_domain *clp, struct path *path)
990 struct svc_export *exp = exp_get_by_name(cd, clp, path, NULL);
996 exp = exp_get_by_name(cd, clp, path, NULL);
1020 struct cache_detail *cd = nn->svc_export_cache;
1033 exp = exp_parent(cd, clp, &path);
1055 static struct svc_export *exp_find(struct cache_detail *cd,
1060 struct nfsd_net *nn = net_generic(cd->net, nfsd_net_id);
1065 exp = exp_get_by_name(cd, clp, &ek->ek_path, reqp);
1137 struct cache_detail *cd = nn->svc_export_cache;
1143 exp = exp_get_by_name(cd, rqstp->rq_client, path, &rqstp->rq_chandle);
1155 gssexp = exp_get_by_name(cd, rqstp->rq_gssclient, path, &rqstp->rq_chandle);
1168 struct cache_detail *cd = nn->svc_export_cache;
1174 exp = exp_find(cd, rqstp->rq_client, fsid_type,
1187 gssexp = exp_find(cd, rqstp->rq_gssclient, fsid_type, fsidv,
1356 struct cache_detail *cd = m->private;
1369 if (cache_check(cd, &exp->h, NULL))
1372 return svc_export_show(m, cd, cp);