Lines Matching refs:h
91 struct cache_head *h);
187 sunrpc_cache_pipe_upcall(struct cache_detail *detail, struct cache_head *h);
190 struct cache_head *h);
195 static inline struct cache_head *cache_get(struct cache_head *h) in cache_get() argument
197 kref_get(&h->ref); in cache_get()
198 return h; in cache_get()
201 static inline struct cache_head *cache_get_rcu(struct cache_head *h) in cache_get_rcu() argument
203 if (kref_get_unless_zero(&h->ref)) in cache_get_rcu()
204 return h; in cache_get_rcu()
208 static inline void cache_put(struct cache_head *h, struct cache_detail *cd) in cache_put() argument
210 if (kref_read(&h->ref) <= 2 && in cache_put()
211 h->expiry_time < cd->nextcheck) in cache_put()
212 cd->nextcheck = h->expiry_time; in cache_put()
213 kref_put(&h->ref, cd->cache_put); in cache_put()
216 static inline bool cache_is_expired(struct cache_detail *detail, struct cache_head *h) in cache_is_expired() argument
218 if (h->expiry_time < seconds_since_boot()) in cache_is_expired()
220 if (!test_bit(CACHE_VALID, &h->flags)) in cache_is_expired()
222 return detail->flush_time >= h->last_refresh; in cache_is_expired()
226 struct cache_head *h, struct cache_req *rqstp);