Lines Matching refs:h
66 struct cache_head h; member
81 struct ent *new = container_of(cnew, struct ent, h); in ent_init()
82 struct ent *itm = container_of(citm, struct ent, h); in ent_init()
94 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put()
103 return &e->h; in ent_alloc()
131 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request()
145 struct ent *a = container_of(ca, struct ent, h); in idtoname_match()
146 struct ent *b = container_of(cb, struct ent, h); in idtoname_match()
153 idtoname_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) in idtoname_show() argument
157 if (h == NULL) { in idtoname_show()
161 ent = container_of(h, struct ent, h); in idtoname_show()
165 if (test_bit(CACHE_VALID, &h->flags)) in idtoname_show()
237 ent.h.expiry_time = get_expiry(&buf); in idtoname_parse()
238 if (ent.h.expiry_time == 0) in idtoname_parse()
252 set_bit(CACHE_NEGATIVE, &ent.h.flags); in idtoname_parse()
260 cache_put(&res->h, cd); in idtoname_parse()
270 struct cache_head *ch = sunrpc_cache_lookup(cd, &item->h, in idtoname_lookup()
273 return container_of(ch, struct ent, h); in idtoname_lookup()
281 struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h, in idtoname_update()
284 return container_of(ch, struct ent, h); in idtoname_update()
304 struct ent *ent = container_of(ch, struct ent, h); in nametoid_request()
316 struct ent *a = container_of(ca, struct ent, h); in nametoid_match()
317 struct ent *b = container_of(cb, struct ent, h); in nametoid_match()
324 nametoid_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) in nametoid_show() argument
328 if (h == NULL) { in nametoid_show()
332 ent = container_of(h, struct ent, h); in nametoid_show()
336 if (test_bit(CACHE_VALID, &h->flags)) in nametoid_show()
398 ent.h.expiry_time = get_expiry(&buf); in nametoid_parse()
399 if (ent.h.expiry_time == 0) in nametoid_parse()
407 set_bit(CACHE_NEGATIVE, &ent.h.flags); in nametoid_parse()
417 cache_put(&res->h, cd); in nametoid_parse()
428 struct cache_head *ch = sunrpc_cache_lookup(cd, &item->h, in nametoid_lookup()
431 return container_of(ch, struct ent, h); in nametoid_lookup()
439 struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h, in nametoid_update()
442 return container_of(ch, struct ent, h); in nametoid_update()
504 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup()
511 cache_put(&(*item)->h, detail); in idmap_lookup()
546 cache_put(&item->h, nn->nametoid_cache); in idmap_name_to_id()
587 cache_put(&item->h, nn->idtoname_cache); in idmap_id_to_name()