Searched refs:CacheNode (Results 1 – 8 of 8) sorted by relevance
| /system/ulib/blobfs/ |
| A D | cache-node.cpp | 14 void CacheNode::fbl_recycle() { in fbl_recycle() 30 CacheNode::CacheNode() = default; 32 CacheNode::CacheNode(const Digest& digest) { in CacheNode() function in blobfs::CacheNode 35 CacheNode::~CacheNode() = default;
|
| A D | blob-cache.cpp | 25 ForAllOpenNodes([this](fbl::RefPtr<CacheNode> node) { in Reset() 38 CacheNode* node = nullptr; in ResetLocked() 45 fbl::RefPtr<CacheNode> old_vnode = nullptr; in ForAllOpenNodes() 46 fbl::RefPtr<CacheNode> vnode = nullptr; in ForAllOpenNodes() 57 CacheNode* raw_vnode = nullptr; in ForAllOpenNodes() 95 fbl::RefPtr<CacheNode> vnode = nullptr; in Lookup() 154 zx_status_t BlobCache::Add(const fbl::RefPtr<CacheNode>& vnode) { in Add() 159 fbl::RefPtr<CacheNode> old_node; in Add() 170 zx_status_t BlobCache::Evict(const fbl::RefPtr<CacheNode>& vnode) { in Evict() 198 void BlobCache::Downgrade(CacheNode* raw_vnode) { in Downgrade() [all …]
|
| A D | vnode.cpp | 315 : CacheNode(digest), blobfs_(bs), flags_(kBlobStateEmpty), syncing_(false), in VnodeBlob() 915 fbl::RefPtr<CacheNode> cache_node; in Lookup() 1019 fbl::RefPtr<CacheNode> cache_node; in Unlink()
|
| A D | blobfs.cpp | 270 Cache().ForAllOpenNodes([](fbl::RefPtr<CacheNode> cache_node) { in Shutdown()
|
| /system/ulib/blobfs/include/blobfs/ |
| A D | blob-cache.h | 74 using NextNodeCallback = fbl::Function<void(fbl::RefPtr<CacheNode>)>; 92 zx_status_t Add(const fbl::RefPtr<CacheNode>& vnode) __WARN_UNUSED_RESULT; 101 zx_status_t Evict(const fbl::RefPtr<CacheNode>& vnode) __WARN_UNUSED_RESULT; 109 void Downgrade(CacheNode* vn); 110 friend void CacheNode::fbl_recycle(); 120 zx_status_t EvictUnsafe(CacheNode* vnode, bool from_recycle = false); 128 zx_status_t LookupLocked(const uint8_t* key, fbl::RefPtr<CacheNode>* out) 136 fbl::RefPtr<CacheNode> UpgradeLocked(const uint8_t* key) __TA_REQUIRES(hash_lock_); 145 static const uint8_t* GetKey(const CacheNode& obj) { return obj.GetKey(); } in GetKey() 157 CacheNode*, [all …]
|
| A D | cache-node.h | 27 class CacheNode : public fs::Vnode, fbl::Recyclable<CacheNode> { 30 using WAVLTreeNodeState = fbl::WAVLTreeNodeState<CacheNode*>; 32 static WAVLTreeNodeState& node_state(CacheNode& b) { return b.type_wavl_state_; } in node_state() 42 CacheNode(); 43 explicit CacheNode(const Digest& digest); 44 virtual ~CacheNode();
|
| A D | vnode.h | 68 class VnodeBlob final : public CacheNode, fbl::Recyclable<VnodeBlob> { 80 CacheNode::fbl_recycle(); in fbl_recycle()
|
| /system/ulib/blobfs/test/ |
| A D | blob-cache-test.cpp | 19 class TestNode : public CacheNode, fbl::Recyclable<TestNode> { 22 : CacheNode(digest), cache_(cache), should_cache_(true), using_memory_(false) {} in TestNode() 25 CacheNode::fbl_recycle(); in fbl_recycle() 69 cache->ForAllOpenNodes([](fbl::RefPtr<CacheNode>) { in CheckNothingOpenHelper() argument 85 fbl::RefPtr<CacheNode> missing_node; in NullTest() 106 fbl::RefPtr<CacheNode> found_node; in AddLookupEvictTest() 185 cache->ForAllOpenNodes([&node_count, &node_ptr](fbl::RefPtr<CacheNode> node) { in CheckExistsAloneInOpenCache() 221 fbl::RefPtr<CacheNode> node; in CacheAfterRecycleTest() 231 fbl::RefPtr<CacheNode> cache_node; in CacheAfterRecycleTest() 353 fbl::RefPtr<CacheNode> cache_node; in CachePolicyEvictImmediatelyTest() [all …]
|
Completed in 17 milliseconds