Lines Matching refs:last_block
73 unsigned int last_block = 0; in sparse_count_chunks() local
77 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() local
121 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()
258 unsigned int last_block = 0; in move_chunks_up_to_len() local
278 if (backed_block_block(bb) > last_block) count += sizeof(chunk_header_t); in move_chunks_up_to_len()
279 last_block = backed_block_block(bb) + DIV_ROUND_UP(backed_block_len(bb), to->block_size); in move_chunks_up_to_len()