Lines Matching refs:num_blocks
39 return a.start_block() + a.num_blocks() >= b.start_block();
41 return b.start_block() + b.num_blocks() >= a.start_block();
51 return a.start_block() + a.num_blocks() > b.start_block();
53 return b.start_block() + b.num_blocks() > a.start_block();
71 uint64_t end = std::max(first.start_block() + first.num_blocks(),
72 second.start_block() + second.num_blocks());
79 if (extent.start_block() == kSparseHole || extent.num_blocks() == 0)
90 del_blocks += it->num_blocks();
100 blocks_ += extent.num_blocks();
112 uint64_t base_end = base.start_block() + base.num_blocks();
113 uint64_t subtractee_end = subtractee.start_block() + subtractee.num_blocks();
122 if (extent.start_block() == kSparseHole || extent.num_blocks() == 0)
139 del_blocks += it->num_blocks();
145 del_blocks -= jt->num_blocks();
205 block < iter->start_block() + iter->num_blocks()) {
217 LOG(INFO) << "{" << it->start_block() << ", " << it->num_blocks() << "}";
221 Extent ExtentForRange(uint64_t start_block, uint64_t num_blocks) {
224 ret.set_num_blocks(num_blocks);
241 out_blocks += extent.num_blocks();
242 if (extent.num_blocks() < blocks_needed)
244 if (extent.num_blocks() == blocks_needed)
247 out_blocks -= extent.num_blocks();
264 // lower than extent.start_block() + extent.num_blocks().
271 ExtentForRange(extent.start_block() + extent.num_blocks(), 0));
277 uint64_t cut_blocks = iter->start_block() + iter->num_blocks() -
279 if (cut_blocks >= extent.num_blocks()) {
284 extent.num_blocks() - cut_blocks);
291 uint64_t new_start = iter->start_block() + iter->num_blocks();
292 uint64_t old_end = extent.start_block() + extent.num_blocks();
300 if (extent.num_blocks() > 0)