Lines Matching refs:h
42 struct svc_expkey *key = container_of(ref, struct svc_expkey, h.ref); in expkey_put()
44 if (test_bit(CACHE_VALID, &key->h.flags) && in expkey_put()
45 !test_bit(CACHE_NEGATIVE, &key->h.flags)) in expkey_put()
52 struct cache_head *h, in expkey_request() argument
56 struct svc_expkey *ek = container_of(h, struct svc_expkey, h); in expkey_request()
117 key.h.flags = 0; in expkey_parse()
118 key.h.expiry_time = get_expiry(&mesg); in expkey_parse()
119 if (key.h.expiry_time == 0) in expkey_parse()
139 set_bit(CACHE_NEGATIVE, &key.h.flags); in expkey_parse()
158 cache_put(&ek->h, cd); in expkey_parse()
167 struct cache_head *h) in expkey_show() argument
172 if (h ==NULL) { in expkey_show()
176 ek = container_of(h, struct svc_expkey, h); in expkey_show()
181 if (test_bit(CACHE_VALID, &h->flags) && in expkey_show()
182 !test_bit(CACHE_NEGATIVE, &h->flags)) { in expkey_show()
192 struct svc_expkey *orig = container_of(a, struct svc_expkey, h); in expkey_match()
193 struct svc_expkey *new = container_of(b, struct svc_expkey, h); in expkey_match()
205 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_init()
206 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_init()
218 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_update()
219 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_update()
229 return &i->h; in expkey_alloc()
267 ch = sunrpc_cache_lookup(cd, &item->h, hash); in svc_expkey_lookup()
269 return container_of(ch, struct svc_expkey, h); in svc_expkey_lookup()
281 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); in svc_expkey_update()
283 return container_of(ch, struct svc_expkey, h); in svc_expkey_update()
311 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); in svc_export_put()
320 struct cache_head *h, in svc_export_request() argument
324 struct svc_export *exp = container_of(h, struct svc_export, h); in svc_export_request()
553 exp.h.expiry_time = get_expiry(&mesg); in svc_export_parse()
554 if (exp.h.expiry_time == 0) in svc_export_parse()
561 set_bit(CACHE_NEGATIVE, &exp.h.flags); in svc_export_parse()
611 if (exp.h.expiry_time < seconds_since_boot()) in svc_export_parse()
658 struct cache_head *h) in svc_export_show() argument
662 if (h ==NULL) { in svc_export_show()
666 exp = container_of(h, struct svc_export, h); in svc_export_show()
671 if (test_bit(CACHE_VALID, &h->flags) && in svc_export_show()
672 !test_bit(CACHE_NEGATIVE, &h->flags)) { in svc_export_show()
691 struct svc_export *orig = container_of(a, struct svc_export, h); in svc_export_match()
692 struct svc_export *new = container_of(b, struct svc_export, h); in svc_export_match()
699 struct svc_export *new = container_of(cnew, struct svc_export, h); in svc_export_init()
700 struct svc_export *item = container_of(citem, struct svc_export, h); in svc_export_init()
716 struct svc_export *new = container_of(cnew, struct svc_export, h); in export_update()
717 struct svc_export *item = container_of(citem, struct svc_export, h); in export_update()
745 return &i->h; in svc_export_alloc()
781 ch = sunrpc_cache_lookup(exp->cd, &exp->h, hash); in svc_export_lookup()
783 return container_of(ch, struct svc_export, h); in svc_export_lookup()
794 ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); in svc_export_update()
796 return container_of(ch, struct svc_export, h); in svc_export_update()
819 err = cache_check(cd, &ek->h, reqp); in exp_find_key()
842 err = cache_check(cd, &exp->h, reqp); in exp_get_by_name()
931 cache_put(&ek->h, nn->svc_expkey_cache); in exp_find()
1189 struct svc_export *exp = container_of(cp, struct svc_export, h); in e_show()
1199 if (cache_check(cd, &exp->h, NULL)) in e_show()