• Home
  • Raw
  • Download

Lines Matching refs:h

63 	struct cache_head h;  member
79 struct ent *new = container_of(cnew, struct ent, h); in ent_init()
80 struct ent *itm = container_of(citm, struct ent, h); in ent_init()
92 struct ent *map = container_of(ref, struct ent, h.ref); in ent_put()
101 return &e->h; in ent_alloc()
129 struct ent *ent = container_of(ch, struct ent, h); in idtoname_request()
143 struct ent *a = container_of(ca, struct ent, h); in idtoname_match()
144 struct ent *b = container_of(cb, struct ent, h); in idtoname_match()
151 idtoname_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) in idtoname_show() argument
155 if (h == NULL) { in idtoname_show()
159 ent = container_of(h, struct ent, h); in idtoname_show()
163 if (test_bit(CACHE_VALID, &h->flags)) in idtoname_show()
235 ent.h.expiry_time = get_expiry(&buf); in idtoname_parse()
236 if (ent.h.expiry_time == 0) in idtoname_parse()
250 set_bit(CACHE_NEGATIVE, &ent.h.flags); in idtoname_parse()
258 cache_put(&res->h, cd); in idtoname_parse()
268 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, in idtoname_lookup()
271 return container_of(ch, struct ent, h); in idtoname_lookup()
279 struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h, in idtoname_update()
282 return container_of(ch, struct ent, h); in idtoname_update()
302 struct ent *ent = container_of(ch, struct ent, h); in nametoid_request()
314 struct ent *a = container_of(ca, struct ent, h); in nametoid_match()
315 struct ent *b = container_of(cb, struct ent, h); in nametoid_match()
322 nametoid_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h) in nametoid_show() argument
326 if (h == NULL) { in nametoid_show()
330 ent = container_of(h, struct ent, h); in nametoid_show()
334 if (test_bit(CACHE_VALID, &h->flags)) in nametoid_show()
396 ent.h.expiry_time = get_expiry(&buf); in nametoid_parse()
397 if (ent.h.expiry_time == 0) in nametoid_parse()
405 set_bit(CACHE_NEGATIVE, &ent.h.flags); in nametoid_parse()
415 cache_put(&res->h, cd); in nametoid_parse()
426 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, in nametoid_lookup()
429 return container_of(ch, struct ent, h); in nametoid_lookup()
437 struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h, in nametoid_update()
440 return container_of(ch, struct ent, h); in nametoid_update()
502 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup()
509 cache_put(&(*item)->h, detail); in idmap_lookup()
544 cache_put(&item->h, nn->nametoid_cache); in idmap_name_to_id()
585 cache_put(&item->h, nn->idtoname_cache); in idmap_id_to_name()