| /system/ulib/blobfs/ |
| A D | node-reserver.cpp | 16 return reserved_nodes_.Get(node_index, node_index + 1, nullptr); in IsNodeReserved() 19 void NodeReserver::Reserve(uint32_t node_index) { in Reserve() argument 20 ZX_DEBUG_ASSERT(!reserved_nodes_.Get(node_index, node_index + 1, nullptr)); in Reserve() 23 reserved_nodes_.Set(node_index, node_index + 1); in Reserve() 26 void NodeReserver::Unreserve(uint32_t node_index) { in Unreserve() argument 27 ZX_DEBUG_ASSERT(reserved_nodes_.Get(node_index, node_index + 1, nullptr)); in Unreserve() 28 zx_status_t status = reserved_nodes_.Clear(node_index, node_index + 1); in Unreserve() 31 SetFreeNodeLowerBoundIfSmallest(node_index); in Unreserve() 40 if (free_node_lower_bound_ > node_index) { in SetFreeNodeLowerBoundIfSmallest() 41 SetFreeNodeLowerBound(node_index); in SetFreeNodeLowerBoundIfSmallest() [all …]
|
| A D | blobfs.cpp | 151 zx_status_t Blobfs::VerifyBlob(uint32_t node_index) { in VerifyBlob() argument 152 return VnodeBlob::VerifyBlob(this, node_index); in VerifyBlob() 185 allocator_->FreeNode(node_index); in FreeNode() 187 WriteNode(wb, node_index); in FreeNode() 192 Inode* mapped_inode = GetNode(node_index); in FreeInode() 197 FreeNode(wb, node_index); in FreeInode() 204 FreeNode(wb, node_index); in FreeInode() 220 WriteNode(wb, node_index); in PersistNode() 637 for (uint32_t node_index = 0; node_index < info_.inode_count; node_index++) { in InitializeVnodes() local 638 const Inode* inode = GetNode(node_index); in InitializeVnodes() [all …]
|
| A D | allocator.cpp | 39 Inode* Allocator::GetNode(uint32_t node_index) { in GetNode() argument 40 ZX_DEBUG_ASSERT(node_index < node_map_.size() / kBlobfsInodeSize); in GetNode() 41 return &reinterpret_cast<Inode*>(node_map_.start())[node_index]; in GetNode() 194 uint32_t node_index; in ReserveNode() local 196 if ((status = FindNode(&node_index)) != ZX_OK) { in ReserveNode() 199 (status = FindNode(&node_index) != ZX_OK)) { in ReserveNode() 204 ZX_DEBUG_ASSERT(!GetNode(node_index)->header.IsAllocated()); in ReserveNode() 210 SetFreeNodeLowerBound(node_index + 1); in ReserveNode() 230 void Allocator::FreeNode(uint32_t node_index) { in FreeNode() argument 231 SetFreeNodeLowerBoundIfSmallest(node_index); in FreeNode() [all …]
|
| A D | vnode.cpp | 299 void VnodeBlob::PopulateInode(uint32_t node_index) { in PopulateInode() argument 302 map_index_ = node_index; in PopulateInode() 303 Inode* inode = blobfs_->GetNode(node_index); in PopulateInode() 796 zx_status_t VnodeBlob::VerifyBlob(Blobfs* bs, uint32_t node_index) { in VerifyBlob() argument 797 Inode* inode = bs->GetNode(node_index); in VerifyBlob() 806 vn->PopulateInode(node_index); in VerifyBlob()
|
| A D | host.cpp | 574 zx_status_t Blobfs::VerifyBlob(uint32_t node_index) { in VerifyBlob() argument 575 Inode inode = *GetNode(node_index); in VerifyBlob()
|
| /system/ulib/blobfs/include/blobfs/ |
| A D | node-reserver.h | 24 void Reserve(uint32_t node_index); 27 void Unreserve(uint32_t node_index); 34 bool IsNodeReserved(uint32_t node_index) const; 40 void SetFreeNodeLowerBoundIfSmallest(uint32_t node_index); 46 void SetFreeNodeLowerBound(uint32_t node_index);
|
| A D | blobfs.h | 128 AllocatedExtentIterator GetExtents(uint32_t node_index) { in GetExtents() argument 129 return AllocatedExtentIterator(allocator_.get(), node_index); in GetExtents() 134 Inode* GetNode(uint32_t node_index) { return allocator_->GetNode(node_index); } in GetNode() argument 207 void FreeInode(WritebackWork* wb, uint32_t node_index); 218 void PersistNode(WritebackWork* wb, uint32_t node_index); 239 void FreeNode(WritebackWork* wb, uint32_t node_index); 258 zx_status_t VerifyBlob(uint32_t node_index);
|
| A D | host.h | 160 Inode* GetNode(uint32_t node_index) final; 162 AllocatedExtentIterator GetExtents(uint32_t node_index) { in GetExtents() argument 163 return AllocatedExtentIterator(this, node_index); in GetExtents() 199 zx_status_t VerifyBlob(uint32_t node_index);
|
| A D | allocator.h | 67 Inode* GetNode(uint32_t node_index) final; 139 void FreeNode(uint32_t node_index);
|
| A D | vnode.h | 110 void PopulateInode(uint32_t node_index); 141 static zx_status_t VerifyBlob(Blobfs* bs, uint32_t node_index);
|
| /system/ulib/blobfs/test/ |
| A D | allocated-extent-iterator-test.cpp | 71 const uint32_t node_index = allocated_nodes[0]; in NullTest() local 72 const Inode* inode = allocator->GetNode(node_index); in NullTest() 99 const uint32_t node_index = allocated_nodes[0]; in InlineNodeTest() local 100 const Inode* inode = allocator->GetNode(node_index); in InlineNodeTest() 110 ASSERT_EQ(node_index, iter.NodeIndex()); in InlineNodeTest() 142 const uint32_t node_index = allocated_nodes[0]; in MultiNodeTest() local 193 const uint32_t node_index = allocated_nodes[0]; in BadInodeNextNodeTest() local 194 Inode* inode = allocator->GetNode(node_index); in BadInodeNextNodeTest() 199 inode->header.next_node = node_index; in BadInodeNextNodeTest() 266 const uint32_t node_index = allocated_nodes[0]; in BlockIteratorFragmentedTest() local [all …]
|
| A D | blob-cache-test.cpp | 321 size_t node_index = 0; in ForAllOpenNodesTest() local 322 cache.ForAllOpenNodes([&open_nodes, &node_index](fbl::RefPtr<CacheNode> node) { in ForAllOpenNodesTest() 323 ZX_ASSERT(node_index < fbl::count_of(open_nodes)); in ForAllOpenNodesTest() 328 node_index++; in ForAllOpenNodesTest() 334 ASSERT_EQ(fbl::count_of(open_nodes), node_index); in ForAllOpenNodesTest()
|
| A D | node-populator-test.cpp | 43 const uint32_t node_index = nodes[0].index(); in NullTest() local 48 ZX_DEBUG_ASSERT(node_index == node.index()); in NullTest() 71 const uint32_t node_index = nodes[0].index(); in WalkOneTest() local 82 ZX_DEBUG_ASSERT(node_index == node.index()); in WalkOneTest() 94 const Inode* inode = allocator->GetNode(node_index); in WalkOneTest()
|
| /system/ulib/blobfs/iterator/ |
| A D | allocated-extent-iterator.cpp | 14 AllocatedExtentIterator::AllocatedExtentIterator(NodeFinder* finder, uint32_t node_index) in AllocatedExtentIterator() argument 15 : finder_(finder), inode_(finder_->GetNode(node_index)), node_index_(node_index), in AllocatedExtentIterator() 92 uint32_t node_index = GetNextNode(); in NextContainer() local 95 extent_node_ = finder_->GetNode(node_index)->AsExtentContainer(); in NextContainer() 96 node_index_ = node_index; in NextContainer()
|
| A D | node-populator.cpp | 33 uint32_t node_index = nodes_[node_count].index(); in Walk() local 35 Inode* inode = allocator_->GetNode(node_index); in Walk()
|
| /system/ulib/blobfs/include/blobfs/iterator/ |
| A D | extent-iterator.h | 39 virtual Inode* GetNode(uint32_t node_index) = 0;
|
| A D | allocated-extent-iterator.h | 23 AllocatedExtentIterator(NodeFinder* finder, uint32_t node_index);
|