Lines Matching refs:h
98 struct cache_head *h);
189 sunrpc_cache_pipe_upcall(struct cache_detail *detail, struct cache_head *h);
194 static inline struct cache_head *cache_get(struct cache_head *h) in cache_get() argument
196 kref_get(&h->ref); in cache_get()
197 return h; in cache_get()
201 static inline void cache_put(struct cache_head *h, struct cache_detail *cd) in cache_put() argument
203 if (atomic_read(&h->ref.refcount) <= 2 && in cache_put()
204 h->expiry_time < cd->nextcheck) in cache_put()
205 cd->nextcheck = h->expiry_time; in cache_put()
206 kref_put(&h->ref, cd->cache_put); in cache_put()
209 static inline int cache_is_expired(struct cache_detail *detail, struct cache_head *h) in cache_is_expired() argument
211 return (h->expiry_time < seconds_since_boot()) || in cache_is_expired()
212 (detail->flush_time >= h->last_refresh); in cache_is_expired()
216 struct cache_head *h, struct cache_req *rqstp);