Lines Matching refs:h
96 struct cache_head *h);
183 sunrpc_cache_pipe_upcall(struct cache_detail *detail, struct cache_head *h);
188 static inline struct cache_head *cache_get(struct cache_head *h) in cache_get() argument
190 kref_get(&h->ref); in cache_get()
191 return h; in cache_get()
195 static inline void cache_put(struct cache_head *h, struct cache_detail *cd) in cache_put() argument
197 if (atomic_read(&h->ref.refcount) <= 2 && in cache_put()
198 h->expiry_time < cd->nextcheck) in cache_put()
199 cd->nextcheck = h->expiry_time; in cache_put()
200 kref_put(&h->ref, cd->cache_put); in cache_put()
203 static inline int cache_is_expired(struct cache_detail *detail, struct cache_head *h) in cache_is_expired() argument
205 return (h->expiry_time < seconds_since_boot()) || in cache_is_expired()
206 (detail->flush_time > h->last_refresh); in cache_is_expired()
210 struct cache_head *h, struct cache_req *rqstp);