Searched refs:last_block (Results 1 – 5 of 5) sorted by relevance
73 unsigned int last_block = 0; in sparse_count_chunks() local77 if (backed_block_block(bb) > last_block) { in sparse_count_chunks()82 last_block = backed_block_block(bb) + DIV_ROUND_UP(backed_block_len(bb), s->block_size); in sparse_count_chunks()84 if (last_block < DIV_ROUND_UP(s->len, s->block_size)) { in sparse_count_chunks()116 unsigned int last_block = 0; in write_all_blocks() local121 if (backed_block_block(bb) > last_block) { in write_all_blocks()122 unsigned int blocks = backed_block_block(bb) - last_block; in write_all_blocks()127 last_block = backed_block_block(bb) + DIV_ROUND_UP(backed_block_len(bb), s->block_size); in write_all_blocks()130 pad = s->len - (int64_t)last_block * s->block_size; in write_all_blocks()270 unsigned int last_block = 0; in move_chunks_up_to_len() local[all …]
54 uint64_t last_block = new_block_start + num_blocks - 1; in AddRawBlocks() local55 if (!ValidateNewBlock(last_block)) { in AddRawBlocks()62 uint64_t last_block = new_block_start + num_blocks - 1; in AddZeroBlocks() local63 if (!ValidateNewBlock(last_block)) { in AddZeroBlocks()
645 for (uint32_t last_block, block_number = 0; block_number < num_blocks; block_number++) { in ReadFibmap() local656 if (!extents->empty() && block == last_block + 1) { in ReadFibmap()668 last_block = block; in ReadFibmap()
65 sudo dd of="${mntdir}"/sparse-16k-last_block bs=1 \
1802 uint16_t length = p_resp->len, xx, block, first_block, last_block, num_blocks; in rw_i93_sm_detect_ndef() local2094 last_block = (p_i93->ndef_tlv_last_offset / p_i93->block_size); in rw_i93_sm_detect_ndef()2100 if (block <= last_block) { in rw_i93_sm_detect_ndef()2118 + (p_i93->block_size * (block - last_block) + 1) - in rw_i93_sm_detect_ndef()2133 last_block = (p_i93->ndef_tlv_last_offset / p_i93->block_size); in rw_i93_sm_detect_ndef()2138 if ((block + p_i93->rw_offset) <= last_block) { in rw_i93_sm_detect_ndef()