• Home
  • Raw
  • Download

Lines Matching refs:h

59 	struct cache_head h;  member
75 new = container_of(cnew, struct nfs_dns_ent, h); in nfs_dns_ent_update()
76 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_update()
88 new = container_of(cnew, struct nfs_dns_ent, h); in nfs_dns_ent_init()
89 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_init()
106 item = container_of(ref, struct nfs_dns_ent, h.ref); in nfs_dns_ent_put()
119 return &item->h; in nfs_dns_ent_alloc()
133 struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h); in nfs_dns_request()
142 struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h); in nfs_dns_upcall()
157 a = container_of(ca, struct nfs_dns_ent, h); in nfs_dns_match()
158 b = container_of(cb, struct nfs_dns_ent, h); in nfs_dns_match()
166 struct cache_head *h) in nfs_dns_show() argument
171 if (h == NULL) { in nfs_dns_show()
175 item = container_of(h, struct nfs_dns_ent, h); in nfs_dns_show()
176 ttl = item->h.expiry_time - seconds_since_boot(); in nfs_dns_show()
180 if (!test_bit(CACHE_NEGATIVE, &h->flags)) { in nfs_dns_show()
197 &key->h, in nfs_dns_lookup()
201 return container_of(ch, struct nfs_dns_ent, h); in nfs_dns_lookup()
211 &new->h, &key->h, in nfs_dns_update()
215 return container_of(ch, struct nfs_dns_ent, h); in nfs_dns_update()
243 memset(&key.h, 0, sizeof(key.h)); in nfs_dns_parse()
249 key.h.expiry_time = ttl + seconds_since_boot(); in nfs_dns_parse()
257 set_bit(CACHE_NEGATIVE, &key.h.flags); in nfs_dns_parse()
264 cache_put(&item->h, cd); in nfs_dns_parse()
278 ret = cache_check(cd, &(*item)->h, &dreq->req); in do_cache_lookup()
295 if (!test_bit(CACHE_VALID, &(*item)->h.flags) in do_cache_lookup_nowait()
296 || (*item)->h.expiry_time < seconds_since_boot() in do_cache_lookup_nowait()
297 || cd->flush_time > (*item)->h.last_refresh) in do_cache_lookup_nowait()
300 if (test_bit(CACHE_NEGATIVE, &(*item)->h.flags)) in do_cache_lookup_nowait()
304 cache_put(&(*item)->h, cd); in do_cache_lookup_nowait()
349 cache_put(&item->h, nn->nfs_dns_resolve); in nfs_dns_resolve_name()