Lines Matching refs:current_detail
379 static struct cache_detail *current_detail; variable
408 if (current_detail == cd) in sunrpc_destroy_cache_detail()
409 current_detail = NULL; in sunrpc_destroy_cache_detail()
434 while (current_detail == NULL || in cache_clean()
435 current_index >= current_detail->hash_size) { in cache_clean()
436 if (current_detail) in cache_clean()
437 next = current_detail->others.next; in cache_clean()
441 current_detail = NULL; in cache_clean()
445 current_detail = list_entry(next, struct cache_detail, others); in cache_clean()
446 if (current_detail->nextcheck > seconds_since_boot()) in cache_clean()
447 current_index = current_detail->hash_size; in cache_clean()
450 current_detail->nextcheck = seconds_since_boot()+30*60; in cache_clean()
455 while (current_detail && in cache_clean()
456 current_index < current_detail->hash_size && in cache_clean()
457 hlist_empty(¤t_detail->hash_table[current_index])) in cache_clean()
462 if (current_detail && current_index < current_detail->hash_size) { in cache_clean()
468 spin_lock(¤t_detail->hash_lock); in cache_clean()
472 head = ¤t_detail->hash_table[current_index]; in cache_clean()
474 if (current_detail->nextcheck > ch->expiry_time) in cache_clean()
475 current_detail->nextcheck = ch->expiry_time+1; in cache_clean()
476 if (!cache_is_expired(current_detail, ch)) in cache_clean()
479 sunrpc_begin_cache_remove_entry(ch, current_detail); in cache_clean()
480 trace_cache_entry_expired(current_detail, ch); in cache_clean()
485 spin_unlock(¤t_detail->hash_lock); in cache_clean()
486 d = current_detail; in cache_clean()