• Home
  • Raw
  • Download

Lines Matching refs:h

44 	struct svc_expkey *key = container_of(ref, struct svc_expkey, h.ref);  in expkey_put()
46 if (test_bit(CACHE_VALID, &key->h.flags) && in expkey_put()
47 !test_bit(CACHE_NEGATIVE, &key->h.flags)) in expkey_put()
54 struct cache_head *h, in expkey_request() argument
58 struct svc_expkey *ek = container_of(h, struct svc_expkey, h); in expkey_request()
119 key.h.flags = 0; in expkey_parse()
120 key.h.expiry_time = get_expiry(&mesg); in expkey_parse()
121 if (key.h.expiry_time == 0) in expkey_parse()
141 set_bit(CACHE_NEGATIVE, &key.h.flags); in expkey_parse()
160 cache_put(&ek->h, cd); in expkey_parse()
169 struct cache_head *h) in expkey_show() argument
174 if (h ==NULL) { in expkey_show()
178 ek = container_of(h, struct svc_expkey, h); in expkey_show()
183 if (test_bit(CACHE_VALID, &h->flags) && in expkey_show()
184 !test_bit(CACHE_NEGATIVE, &h->flags)) { in expkey_show()
194 struct svc_expkey *orig = container_of(a, struct svc_expkey, h); in expkey_match()
195 struct svc_expkey *new = container_of(b, struct svc_expkey, h); in expkey_match()
207 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_init()
208 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_init()
220 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_update()
221 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_update()
231 return &i->h; in expkey_alloc()
281 ch = sunrpc_cache_lookup_rcu(cd, &item->h, hash); in svc_expkey_lookup()
283 return container_of(ch, struct svc_expkey, h); in svc_expkey_lookup()
295 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); in svc_expkey_update()
297 return container_of(ch, struct svc_expkey, h); in svc_expkey_update()
325 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); in svc_export_put()
334 struct cache_head *h, in svc_export_request() argument
338 struct svc_export *exp = container_of(h, struct svc_export, h); in svc_export_request()
568 exp.h.expiry_time = get_expiry(&mesg); in svc_export_parse()
569 if (exp.h.expiry_time == 0) in svc_export_parse()
576 set_bit(CACHE_NEGATIVE, &exp.h.flags); in svc_export_parse()
626 if (exp.h.expiry_time < seconds_since_boot()) in svc_export_parse()
673 struct cache_head *h) in svc_export_show() argument
677 if (h ==NULL) { in svc_export_show()
681 exp = container_of(h, struct svc_export, h); in svc_export_show()
686 if (test_bit(CACHE_VALID, &h->flags) && in svc_export_show()
687 !test_bit(CACHE_NEGATIVE, &h->flags)) { in svc_export_show()
706 struct svc_export *orig = container_of(a, struct svc_export, h); in svc_export_match()
707 struct svc_export *new = container_of(b, struct svc_export, h); in svc_export_match()
714 struct svc_export *new = container_of(cnew, struct svc_export, h); in svc_export_init()
715 struct svc_export *item = container_of(citem, struct svc_export, h); in svc_export_init()
731 struct svc_export *new = container_of(cnew, struct svc_export, h); in export_update()
732 struct svc_export *item = container_of(citem, struct svc_export, h); in export_update()
760 return &i->h; in svc_export_alloc()
796 ch = sunrpc_cache_lookup_rcu(exp->cd, &exp->h, hash); in svc_export_lookup()
798 return container_of(ch, struct svc_export, h); in svc_export_lookup()
809 ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); in svc_export_update()
811 return container_of(ch, struct svc_export, h); in svc_export_update()
834 err = cache_check(cd, &ek->h, reqp); in exp_find_key()
857 err = cache_check(cd, &exp->h, reqp); in exp_get_by_name()
946 cache_put(&ek->h, nn->svc_expkey_cache); in exp_find()
1217 struct svc_export *exp = container_of(cp, struct svc_export, h); in e_show()
1227 if (cache_check(cd, &exp->h, NULL)) in e_show()