Lines Matching refs:old
40 LRUHandle* old = *ptr; in Insert() local
41 h->next_hash = (old == nullptr ? nullptr : old->next_hash); in Insert()
43 if (old == nullptr) { in Insert()
51 return old; in Insert()
123 LRUHandle* old = lru_.next; in EraseUnRefEntries() local
125 assert(old->InCache() && !old->HasRefs()); in EraseUnRefEntries()
126 LRU_Remove(old); in EraseUnRefEntries()
127 table_.Remove(old->key(), old->hash); in EraseUnRefEntries()
128 old->SetInCache(false); in EraseUnRefEntries()
129 size_t total_charge = old->CalcTotalCharge(metadata_charge_policy_); in EraseUnRefEntries()
132 last_reference_list.push_back(old); in EraseUnRefEntries()
238 LRUHandle* old = lru_.next; in EvictFromLRU() local
240 assert(old->InCache() && !old->HasRefs()); in EvictFromLRU()
241 LRU_Remove(old); in EvictFromLRU()
242 table_.Remove(old->key(), old->hash); in EvictFromLRU()
243 old->SetInCache(false); in EvictFromLRU()
244 size_t old_total_charge = old->CalcTotalCharge(metadata_charge_policy_); in EvictFromLRU()
247 deleted->push_back(old); in EvictFromLRU()
385 LRUHandle* old = table_.Insert(e); in Insert() local
387 if (old != nullptr) { in Insert()
388 assert(old->InCache()); in Insert()
389 old->SetInCache(false); in Insert()
390 if (!old->HasRefs()) { in Insert()
392 LRU_Remove(old); in Insert()
394 old->CalcTotalCharge(metadata_charge_policy_); in Insert()
397 last_reference_list.push_back(old); in Insert()