Lines Matching refs:tmp
66 struct cache_head *tmp; in sunrpc_cache_find_rcu() local
69 hlist_for_each_entry_rcu(tmp, head, cache_list) { in sunrpc_cache_find_rcu()
70 if (!detail->match(tmp, key)) in sunrpc_cache_find_rcu()
72 if (test_bit(CACHE_VALID, &tmp->flags) && in sunrpc_cache_find_rcu()
73 cache_is_expired(detail, tmp)) in sunrpc_cache_find_rcu()
75 tmp = cache_get_rcu(tmp); in sunrpc_cache_find_rcu()
77 return tmp; in sunrpc_cache_find_rcu()
103 struct cache_head *new, *tmp, *freeme = NULL; in sunrpc_cache_add_entry() local
119 hlist_for_each_entry_rcu(tmp, head, cache_list, in sunrpc_cache_add_entry()
121 if (!detail->match(tmp, key)) in sunrpc_cache_add_entry()
123 if (test_bit(CACHE_VALID, &tmp->flags) && in sunrpc_cache_add_entry()
124 cache_is_expired(detail, tmp)) { in sunrpc_cache_add_entry()
125 sunrpc_begin_cache_remove_entry(tmp, detail); in sunrpc_cache_add_entry()
126 trace_cache_entry_expired(detail, tmp); in sunrpc_cache_add_entry()
127 freeme = tmp; in sunrpc_cache_add_entry()
130 cache_get(tmp); in sunrpc_cache_add_entry()
133 return tmp; in sunrpc_cache_add_entry()
209 struct cache_head *tmp; in sunrpc_cache_update() local
223 tmp = detail->alloc(); in sunrpc_cache_update()
224 if (!tmp) { in sunrpc_cache_update()
228 cache_init(tmp, detail); in sunrpc_cache_update()
229 detail->init(tmp, old); in sunrpc_cache_update()
232 cache_entry_update(detail, tmp, new); in sunrpc_cache_update()
233 hlist_add_head(&tmp->cache_list, &detail->hash_table[hash]); in sunrpc_cache_update()
235 cache_get(tmp); in sunrpc_cache_update()
236 cache_fresh_locked(tmp, new->expiry_time, detail); in sunrpc_cache_update()
239 cache_fresh_unlocked(tmp, detail); in sunrpc_cache_update()
242 return tmp; in sunrpc_cache_update()
466 struct hlist_node *tmp; in cache_clean() local
473 hlist_for_each_entry_safe(ch, tmp, head, cache_list) { in cache_clean()
735 struct hlist_node *tmp; in cache_revisit_request() local
741 hlist_for_each_entry_safe(dreq, tmp, &cache_defer_hash[hash], hash) in cache_revisit_request()
758 struct cache_deferred_req *dreq, *tmp; in cache_clean_deferred() local
765 list_for_each_entry_safe(dreq, tmp, &cache_defer_list, recent) { in cache_clean_deferred()
1086 struct cache_queue *cq, *tmp; in cache_dequeue() local
1092 list_for_each_entry_safe(cq, tmp, &detail->queue, list) in cache_dequeue()