Searched refs:BlockInfo (Results 1 – 4 of 4) sorted by relevance
36 block_index_.Clear([](BlockInfo* arg){ delete arg; }); in Clear()39 BlockInfo* BlockCacheTierMetadata::Insert(const Slice& key, const LBA& lba) { in Insert()40 std::unique_ptr<BlockInfo> binfo(new BlockInfo(key, lba)); in Insert()48 BlockInfo lookup_key(key); in Lookup()49 BlockInfo* block; in Lookup()63 BlockInfo* BlockCacheTierMetadata::Remove(const Slice& key) { in Remove()64 BlockInfo lookup_key(key); in Remove()65 BlockInfo* binfo = nullptr; in Remove()73 for (BlockInfo* binfo : f->block_infos()) { in RemoveAllKeys()74 BlockInfo* tmp = nullptr; in RemoveAllKeys()
40 struct BlockInfo { struct41 explicit BlockInfo(const Slice& key, const LBA& lba = LBA())63 BlockInfo* Insert(const Slice& key, const LBA& lba); argument70 BlockInfo* Remove(const Slice& key);106 size_t operator()(BlockInfo* node) const { in operator()112 size_t operator()(BlockInfo* lhs, BlockInfo* rhs) const { in operator()117 typedef HashTable<BlockInfo*, Hash, Equal> BlockIndexType;
52 struct BlockInfo;128 virtual void Add(BlockInfo* binfo) { in Add()133 std::list<BlockInfo*>& block_infos() { return block_infos_; } in block_infos()142 std::list<BlockInfo*> block_infos_; // List of index entries mapping to the
251 BlockInfo* info = metadata_.Insert(key, lba); in InsertImpl()318 BlockInfo* info = metadata_.Remove(key); in Erase()