• Home
  • Raw
  • Download

Lines Matching refs:h

64 	struct svc_expkey *key = container_of(ref, struct svc_expkey, h.ref);  in expkey_put()
66 if (test_bit(CACHE_VALID, &key->h.flags) && in expkey_put()
67 !test_bit(CACHE_NEGATIVE, &key->h.flags)) in expkey_put()
74 struct cache_head *h, in expkey_request() argument
78 struct svc_expkey *ek = container_of(h, struct svc_expkey, h); in expkey_request()
139 key.h.flags = 0; in expkey_parse()
140 key.h.expiry_time = get_expiry(&mesg); in expkey_parse()
141 if (key.h.expiry_time == 0) in expkey_parse()
161 set_bit(CACHE_NEGATIVE, &key.h.flags); in expkey_parse()
180 cache_put(&ek->h, &svc_expkey_cache); in expkey_parse()
189 struct cache_head *h) in expkey_show() argument
194 if (h ==NULL) { in expkey_show()
198 ek = container_of(h, struct svc_expkey, h); in expkey_show()
203 if (test_bit(CACHE_VALID, &h->flags) && in expkey_show()
204 !test_bit(CACHE_NEGATIVE, &h->flags)) { in expkey_show()
214 struct svc_expkey *orig = container_of(a, struct svc_expkey, h); in expkey_match()
215 struct svc_expkey *new = container_of(b, struct svc_expkey, h); in expkey_match()
227 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_init()
228 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_init()
240 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_update()
241 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_update()
251 return &i->h; in expkey_alloc()
283 ch = sunrpc_cache_lookup(&svc_expkey_cache, &item->h, in svc_expkey_lookup()
286 return container_of(ch, struct svc_expkey, h); in svc_expkey_lookup()
303 ch = sunrpc_cache_update(&svc_expkey_cache, &new->h, in svc_expkey_update()
304 &old->h, hash); in svc_expkey_update()
306 return container_of(ch, struct svc_expkey, h); in svc_expkey_update()
331 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); in svc_export_put()
340 struct cache_head *h, in svc_export_request() argument
344 struct svc_export *exp = container_of(h, struct svc_export, h); in svc_export_request()
542 exp.h.expiry_time = get_expiry(&mesg); in svc_export_parse()
543 if (exp.h.expiry_time == 0) in svc_export_parse()
550 set_bit(CACHE_NEGATIVE, &exp.h.flags); in svc_export_parse()
636 struct cache_head *h) in svc_export_show() argument
640 if (h ==NULL) { in svc_export_show()
644 exp = container_of(h, struct svc_export, h); in svc_export_show()
649 if (test_bit(CACHE_VALID, &h->flags) && in svc_export_show()
650 !test_bit(CACHE_NEGATIVE, &h->flags)) { in svc_export_show()
669 struct svc_export *orig = container_of(a, struct svc_export, h); in svc_export_match()
670 struct svc_export *new = container_of(b, struct svc_export, h); in svc_export_match()
678 struct svc_export *new = container_of(cnew, struct svc_export, h); in svc_export_init()
679 struct svc_export *item = container_of(citem, struct svc_export, h); in svc_export_init()
693 struct svc_export *new = container_of(cnew, struct svc_export, h); in export_update()
694 struct svc_export *item = container_of(citem, struct svc_export, h); in export_update()
721 return &i->h; in svc_export_alloc()
750 ch = sunrpc_cache_lookup(&svc_export_cache, &exp->h, in svc_export_lookup()
753 return container_of(ch, struct svc_export, h); in svc_export_lookup()
767 ch = sunrpc_cache_update(&svc_export_cache, &new->h, in svc_export_update()
768 &old->h, in svc_export_update()
771 return container_of(ch, struct svc_export, h); in svc_export_update()
793 err = cache_check(&svc_expkey_cache, &ek->h, reqp); in exp_find_key()
808 key.h.expiry_time = NEVER; in exp_set_key()
809 key.h.flags = 0; in exp_set_key()
815 cache_put(&ek->h, &svc_expkey_cache); in exp_set_key()
867 err = cache_check(&svc_export_cache, &exp->h, reqp); in exp_get_by_name()
939 ek->h.expiry_time = get_seconds()-1; in exp_fsid_unhash()
940 cache_put(&ek->h, &svc_expkey_cache); in exp_fsid_unhash()
977 ek->h.expiry_time = get_seconds()-1; in exp_unhash()
978 cache_put(&ek->h, &svc_expkey_cache); in exp_unhash()
1053 new.h.expiry_time = NEVER; in exp_export()
1054 new.h.flags = 0; in exp_export()
1084 cache_put(&fsid_key->h, &svc_expkey_cache); in exp_export()
1101 unexp->h.expiry_time = get_seconds()-1; in exp_do_unexport()
1211 cache_put(&ek->h, &svc_expkey_cache); in exp_find()
1512 struct svc_export *exp = container_of(cp, struct svc_export, h); in e_show()
1520 cache_get(&exp->h); in e_show()
1521 if (cache_check(&svc_export_cache, &exp->h, NULL)) in e_show()
1523 cache_put(&exp->h, &svc_export_cache); in e_show()