Lines Matching refs:current_detail
341 static struct cache_detail *current_detail; variable
374 if (current_detail == cd) in sunrpc_destroy_cache_detail()
375 current_detail = NULL; in sunrpc_destroy_cache_detail()
402 while (current_detail == NULL || in cache_clean()
403 current_index >= current_detail->hash_size) { in cache_clean()
404 if (current_detail) in cache_clean()
405 next = current_detail->others.next; in cache_clean()
409 current_detail = NULL; in cache_clean()
413 current_detail = list_entry(next, struct cache_detail, others); in cache_clean()
414 if (current_detail->nextcheck > seconds_since_boot()) in cache_clean()
415 current_index = current_detail->hash_size; in cache_clean()
418 current_detail->nextcheck = seconds_since_boot()+30*60; in cache_clean()
423 while (current_detail && in cache_clean()
424 current_index < current_detail->hash_size && in cache_clean()
425 current_detail->hash_table[current_index] == NULL) in cache_clean()
430 if (current_detail && current_index < current_detail->hash_size) { in cache_clean()
434 write_lock(¤t_detail->hash_lock); in cache_clean()
438 cp = & current_detail->hash_table[current_index]; in cache_clean()
440 if (current_detail->nextcheck > ch->expiry_time) in cache_clean()
441 current_detail->nextcheck = ch->expiry_time+1; in cache_clean()
442 if (!cache_is_expired(current_detail, ch)) in cache_clean()
447 current_detail->entries--; in cache_clean()
452 write_unlock(¤t_detail->hash_lock); in cache_clean()
453 d = current_detail; in cache_clean()
459 cache_dequeue(current_detail, ch); in cache_clean()