Lines Matching refs:tmp
64 struct cache_head *tmp; in sunrpc_cache_find_rcu() local
67 hlist_for_each_entry_rcu(tmp, head, cache_list) { in sunrpc_cache_find_rcu()
68 if (detail->match(tmp, key)) { in sunrpc_cache_find_rcu()
69 if (cache_is_expired(detail, tmp)) in sunrpc_cache_find_rcu()
71 tmp = cache_get_rcu(tmp); in sunrpc_cache_find_rcu()
73 return tmp; in sunrpc_cache_find_rcu()
84 struct cache_head *new, *tmp, *freeme = NULL; in sunrpc_cache_add_entry() local
100 hlist_for_each_entry_rcu(tmp, head, cache_list) { in sunrpc_cache_add_entry()
101 if (detail->match(tmp, key)) { in sunrpc_cache_add_entry()
102 if (cache_is_expired(detail, tmp)) { in sunrpc_cache_add_entry()
103 hlist_del_init_rcu(&tmp->cache_list); in sunrpc_cache_add_entry()
105 freeme = tmp; in sunrpc_cache_add_entry()
108 cache_get(tmp); in sunrpc_cache_add_entry()
111 return tmp; in sunrpc_cache_add_entry()
171 struct cache_head *tmp; in sunrpc_cache_update() local
188 tmp = detail->alloc(); in sunrpc_cache_update()
189 if (!tmp) { in sunrpc_cache_update()
193 cache_init(tmp, detail); in sunrpc_cache_update()
194 detail->init(tmp, old); in sunrpc_cache_update()
198 set_bit(CACHE_NEGATIVE, &tmp->flags); in sunrpc_cache_update()
200 detail->update(tmp, new); in sunrpc_cache_update()
201 hlist_add_head(&tmp->cache_list, &detail->hash_table[hash]); in sunrpc_cache_update()
203 cache_get(tmp); in sunrpc_cache_update()
204 cache_fresh_locked(tmp, new->expiry_time, detail); in sunrpc_cache_update()
207 cache_fresh_unlocked(tmp, detail); in sunrpc_cache_update()
210 return tmp; in sunrpc_cache_update()
444 struct hlist_node *tmp; in cache_clean() local
451 hlist_for_each_entry_safe(ch, tmp, head, cache_list) { in cache_clean()
515 struct hlist_node *tmp = NULL; in cache_purge() local
527 hlist_for_each_entry_safe(ch, tmp, head, cache_list) { in cache_purge()
704 struct hlist_node *tmp; in cache_revisit_request() local
710 hlist_for_each_entry_safe(dreq, tmp, &cache_defer_hash[hash], hash) in cache_revisit_request()
727 struct cache_deferred_req *dreq, *tmp; in cache_clean_deferred() local
734 list_for_each_entry_safe(dreq, tmp, &cache_defer_list, recent) { in cache_clean_deferred()
1074 struct cache_queue *cq, *tmp; in cache_dequeue() local
1080 list_for_each_entry_safe(cq, tmp, &detail->queue, list) in cache_dequeue()