Lines Matching refs:vnode

46     fbl::RefPtr<CacheNode> vnode = nullptr;  in ForAllOpenNodes()  local
77 vnode = fbl::MakeRefPtrUpgradeFromRaw(raw_vnode, hash_lock_); in ForAllOpenNodes()
78 if (vnode == nullptr) { in ForAllOpenNodes()
84 callback(vnode); in ForAllOpenNodes()
85 old_vnode = std::move(vnode); in ForAllOpenNodes()
95 fbl::RefPtr<CacheNode> vnode = nullptr; in Lookup() local
99 zx_status_t status = LookupLocked(key, &vnode); in Lookup()
104 ZX_DEBUG_ASSERT(vnode != nullptr); in Lookup()
107 *out = std::move(vnode); in Lookup()
154 zx_status_t BlobCache::Add(const fbl::RefPtr<CacheNode>& vnode) { in Add() argument
157 const uint8_t* key = vnode->GetKey(); in Add()
165 open_hash_.insert(vnode.get()); in Add()
170 zx_status_t BlobCache::Evict(const fbl::RefPtr<CacheNode>& vnode) { in Evict() argument
173 return EvictUnsafe(vnode.get()); in Evict()
176 zx_status_t BlobCache::EvictUnsafe(CacheNode* vnode, bool from_recycle) { in EvictUnsafe() argument
180 if (!vnode->InContainer()) { in EvictUnsafe()
184 ZX_ASSERT(open_hash_.erase(*vnode) != nullptr); in EvictUnsafe()
185 ZX_ASSERT(closed_hash_.find(vnode->GetKey()).CopyPointer() == nullptr); in EvictUnsafe()
204 fbl::RefPtr<CacheNode> vnode = fbl::internal::MakeRefPtrNoAdopt(raw_vnode); in Downgrade() local
209 if (!vnode->InContainer()) { in Downgrade()
210 delete vnode.leak_ref(); in Downgrade()
216 ZX_ASSERT(closed_hash_.insert_or_find(vnode.get())); in Downgrade()
223 vnode->ActivateLowMemory(); in Downgrade()
233 __UNUSED auto leak = vnode.leak_ref(); in Downgrade()