Lines Matching refs:cache_list

46 	INIT_HLIST_NODE(&h->cache_list);  in cache_init()
70 hlist_for_each_entry_rcu(tmp, head, cache_list) { in sunrpc_cache_find_rcu()
103 hlist_for_each_entry_rcu(tmp, head, cache_list) { in sunrpc_cache_add_entry()
106 hlist_del_init_rcu(&tmp->cache_list); in sunrpc_cache_add_entry()
121 hlist_add_head_rcu(&new->cache_list, head); in sunrpc_cache_add_entry()
207 hlist_add_head(&tmp->cache_list, &detail->hash_table[hash]); in sunrpc_cache_update()
361 static LIST_HEAD(cache_list);
379 list_add(&cd->others, &cache_list); in sunrpc_init_cache_detail()
397 if (list_empty(&cache_list)) { in sunrpc_destroy_cache_detail()
423 next = cache_list.next; in cache_clean()
424 if (next == &cache_list) { in cache_clean()
457 hlist_for_each_entry_safe(ch, tmp, head, cache_list) { in cache_clean()
463 hlist_del_init_rcu(&ch->cache_list); in cache_clean()
494 if (list_empty(&cache_list)) in do_cache_clean()
533 hlist_for_each_entry_safe(ch, tmp, head, cache_list) { in cache_purge()
534 hlist_del_init_rcu(&ch->cache_list); in cache_purge()
1335 hlist_for_each_entry_rcu(ch, &cd->hash_table[hash], cache_list) in __cache_seq_start()
1349 struct cache_head, cache_list); in __cache_seq_start()
1360 else if (ch->cache_list.next == NULL) { in cache_seq_next()
1366 hlist_next_rcu(&ch->cache_list)), in cache_seq_next()
1367 struct cache_head, cache_list); in cache_seq_next()
1380 struct cache_head, cache_list); in cache_seq_next()
1894 if (!hlist_unhashed(&h->cache_list)){ in sunrpc_cache_unhash()
1895 hlist_del_init_rcu(&h->cache_list); in sunrpc_cache_unhash()