Lines Matching refs:block
103 // Remove identical corresponding block ranges in |src_extents| and
107 // case the last block is only partly occupied with data. Returns the total
148 // If we removed the last block and this block is only partly used by file
305 for (uint64_t block = 0; block < num_blocks; block++) {
306 if (old_block_ids[block] == new_block_ids[block] &&
307 !old_visited_blocks->ContainsBlock(block) &&
308 !new_visited_blocks->ContainsBlock(block)) {
309 old_visited_blocks->AddBlock(block);
310 new_visited_blocks->AddBlock(block);
315 // A mapping from the block_id to the list of block numbers with that block id
317 // is a block from the new partition.
320 for (uint64_t block = old_num_blocks; block-- > 0; ) {
321 if (old_block_ids[block] != 0 && !old_visited_blocks->ContainsBlock(block))
322 old_blocks_map[old_block_ids[block]].push_back(block);
335 for (uint64_t block = 0; block < new_num_blocks; block++) {
337 if (new_visited_blocks->ContainsBlock(block))
339 if (new_block_ids[block] == 0) {
340 AppendBlockToExtents(&new_zeros, block);
344 auto old_blocks_map_it = old_blocks_map.find(new_block_ids[block]);
345 // Check if the block exists in the old partition at all.
352 AppendBlockToExtents(&new_identical_blocks, block);
661 // Remove identical src/dst block ranges in MOVE operations.