Home | History | Annotate | Download | only in disk_cache

Lines Matching refs:empty

72 void Eviction::TrimCache(bool empty) {
74 return TrimCacheV2(empty);
79 if (!empty && backend_->IsLoaded())
88 int target_size = empty ? 0 : max_size_;
95 if (node->Data()->dirty != backend_->GetCurrentEntryId() || empty) {
99 if (!EvictEntry(node.get(), empty))
102 if (!empty) {
197 bool Eviction::EvictEntry(CacheRankingsBlock* node, bool empty) {
205 if (empty || !new_eviction_) {
225 void Eviction::TrimCacheV2(bool empty) {
229 if (!empty && backend_->IsLoaded())
247 if (!empty && NodeIsOldEnough(next[i].get(), i)) {
254 if (!empty && Rankings::LAST_ELEMENT == list) {
264 if (empty)
269 int target_size = empty ? 0 : max_size_;
278 if (node->Data()->dirty != backend_->GetCurrentEntryId() || empty) {
282 if (!EvictEntry(node.get(), empty))
285 if (!empty && (Time::Now() - start).InMilliseconds() > 20) {
292 if (!empty)
296 if (empty) {
300 factory_.NewRunnableMethod(&Eviction::TrimDeleted, empty));
394 void Eviction::TrimDeleted(bool empty) {
403 for (int i = 0; (i < 4 || empty) && next.get(); i++) {