Lines Matching defs:cache_entry
675 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error);
676 if (!cache_entry) {
681 if (ENTRY_NORMAL != cache_entry->entry()->Data()->state) {
683 cache_entry->Release();
688 eviction_.OnOpenEntry(cache_entry);
694 return cache_entry;
754 scoped_refptr<EntryImpl> cache_entry(
758 if (!cache_entry->CreateEntry(node_address, key, hash)) {
766 cache_entry->BeginLogging(net_log_, true);
769 open_entries_[entry_address.value()] = cache_entry;
772 block_files_.GetFile(entry_address)->Store(cache_entry->entry());
773 block_files_.GetFile(node_address)->Store(cache_entry->rankings());
785 eviction_.OnCreateEntry(cache_entry);
791 return cache_entry.release();
898 EntryImpl* cache_entry = NULL;
899 if (NewEntry(address, &cache_entry))
902 uint32 hash = cache_entry->GetHash();
903 cache_entry->Release();
1512 scoped_refptr<EntryImpl> cache_entry(
1524 if (!cache_entry->entry()->Load())
1531 if (!cache_entry->SanityCheck()) {
1536 if (!cache_entry->LoadNodeAddress())
1540 cache_entry->SetDirtyFlag(GetCurrentEntryId());
1542 if (!rankings_.SanityCheck(cache_entry->rankings(), false)) {
1543 cache_entry->SetDirtyFlag(0);
1547 rankings_.SetContents(cache_entry->rankings(), 0);
1548 } else if (!rankings_.DataSanityCheck(cache_entry->rankings(), false)) {
1549 cache_entry->SetDirtyFlag(0);
1550 rankings_.SetContents(cache_entry->rankings(), address.value());
1553 if (!cache_entry->DataSanityCheck()) {
1555 cache_entry->SetDirtyFlag(0);
1556 cache_entry->FixForDelete();
1559 if (cache_entry->dirty()) {
1560 Trace("Dirty entry 0x%p 0x%x", reinterpret_cast<void*>(cache_entry.get()),
1564 open_entries_[address.value()] = cache_entry;
1566 cache_entry->BeginLogging(net_log_, false);
1567 cache_entry.swap(entry);
1575 scoped_refptr<EntryImpl> cache_entry, parent_entry;
1601 cache_entry.swap(&tmp);
1603 if (error || cache_entry->dirty()) {
1608 child.set_value(cache_entry->GetNextAddress());
1623 DestroyInvalidEntry(cache_entry);
1624 cache_entry = NULL;
1635 DCHECK_EQ(hash & mask_, cache_entry->entry()->Data()->hash & mask_);
1636 if (cache_entry->IsSameEntry(key, hash)) {
1637 if (!cache_entry->Update())
1638 cache_entry = NULL;
1647 if (!cache_entry->Update())
1648 cache_entry = NULL;
1649 parent_entry = cache_entry;
1650 cache_entry = NULL;
1660 if (find_parent && entry_addr.is_initialized() && !cache_entry) {
1665 if (cache_entry && (find_parent || !found))
1666 cache_entry = NULL;
1668 find_parent ? parent_entry.swap(&tmp) : cache_entry.swap(&tmp);
2067 scoped_refptr<EntryImpl> cache_entry;
2068 cache_entry.swap(&tmp);
2070 if (cache_entry->dirty())
2072 else if (CheckEntry(cache_entry.get()))
2077 address.set_value(cache_entry->GetNextAddress());
2092 bool BackendImpl::CheckEntry(EntryImpl* cache_entry) {
2093 bool ok = block_files_.IsValid(cache_entry->entry()->address());
2094 ok = ok && block_files_.IsValid(cache_entry->rankings()->address());
2095 EntryStore* data = cache_entry->entry()->Data();
2104 RankingsNode* rankings = cache_entry->rankings()->Data();