Lines Matching refs:old
165 struct cache_head *new, struct cache_head *old, int hash) in sunrpc_cache_update() argument
173 if (!test_bit(CACHE_VALID, &old->flags)) { in sunrpc_cache_update()
175 if (!test_bit(CACHE_VALID, &old->flags)) { in sunrpc_cache_update()
177 set_bit(CACHE_NEGATIVE, &old->flags); in sunrpc_cache_update()
179 detail->update(old, new); in sunrpc_cache_update()
180 cache_fresh_locked(old, new->expiry_time, detail); in sunrpc_cache_update()
182 cache_fresh_unlocked(old, detail); in sunrpc_cache_update()
183 return old; in sunrpc_cache_update()
190 cache_put(old, detail); in sunrpc_cache_update()
194 detail->init(tmp, old); in sunrpc_cache_update()
205 cache_fresh_locked(old, 0, detail); in sunrpc_cache_update()
208 cache_fresh_unlocked(old, detail); in sunrpc_cache_update()
209 cache_put(old, detail); in sunrpc_cache_update()