• Home
  • Raw
  • Download

Lines Matching refs:h

69 	struct cache_head h;  member
85 struct ent *new = container_of(cnew, struct ent, h); in ent_init()
86 struct ent *itm = container_of(citm, struct ent, h); in ent_init()
98 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put()
107 return &e->h; in ent_alloc()
137 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request()
151 struct ent *a = container_of(ca, struct ent, h); in idtoname_match()
152 struct ent *b = container_of(cb, struct ent, h); in idtoname_match()
159 idtoname_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) in idtoname_show() argument
163 if (h == NULL) { in idtoname_show()
167 ent = container_of(h, struct ent, h); in idtoname_show()
171 if (test_bit(CACHE_VALID, &h->flags)) in idtoname_show()
242 ent.h.expiry_time = get_expiry(&buf); in idtoname_parse()
243 if (ent.h.expiry_time == 0) in idtoname_parse()
257 set_bit(CACHE_NEGATIVE, &ent.h.flags); in idtoname_parse()
267 cache_put(&res->h, &idtoname_cache); in idtoname_parse()
281 &item->h, in idtoname_lookup()
284 return container_of(ch, struct ent, h); in idtoname_lookup()
293 &new->h, &old->h, in idtoname_update()
296 return container_of(ch, struct ent, h); in idtoname_update()
318 struct ent *ent = container_of(ch, struct ent, h); in nametoid_request()
330 struct ent *a = container_of(ca, struct ent, h); in nametoid_match()
331 struct ent *b = container_of(cb, struct ent, h); in nametoid_match()
338 nametoid_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) in nametoid_show() argument
342 if (h == NULL) { in nametoid_show()
346 ent = container_of(h, struct ent, h); in nametoid_show()
350 if (test_bit(CACHE_VALID, &h->flags)) in nametoid_show()
411 ent.h.expiry_time = get_expiry(&buf); in nametoid_parse()
412 if (ent.h.expiry_time == 0) in nametoid_parse()
420 set_bit(CACHE_NEGATIVE, &ent.h.flags); in nametoid_parse()
430 cache_put(&res->h, &nametoid_cache); in nametoid_parse()
443 &item->h, in nametoid_lookup()
446 return container_of(ch, struct ent, h); in nametoid_lookup()
455 &new->h, &old->h, in nametoid_update()
458 return container_of(ch, struct ent, h); in nametoid_update()
541 return cache_check(detail, &(*item)->h, &mdr->req); in do_idmap_lookup()
555 if (!test_bit(CACHE_VALID, &(*item)->h.flags) in do_idmap_lookup_nowait()
556 || (*item)->h.expiry_time < get_seconds() in do_idmap_lookup_nowait()
557 || detail->flush_time > (*item)->h.last_refresh) in do_idmap_lookup_nowait()
560 if (test_bit(CACHE_NEGATIVE, &(*item)->h.flags)) in do_idmap_lookup_nowait()
564 cache_put(&(*item)->h, detail); in do_idmap_lookup_nowait()
587 test_bit(CACHE_VALID, &(*item)->h.flags), 1 * HZ); in idmap_lookup()
623 cache_put(&item->h, &nametoid_cache); in idmap_name_to_id()
645 cache_put(&item->h, &idtoname_cache); in idmap_id_to_name()