Home
last modified time | relevance | path

Searched refs:last_block (Results 1 – 3 of 3) sorted by relevance

/system/core/libsparse/
Dsparse.c83 unsigned int last_block = 0; in sparse_count_chunks() local
88 if (backed_block_block(bb) > last_block) { in sparse_count_chunks()
93 last_block = backed_block_block(bb) + in sparse_count_chunks()
96 if (last_block < DIV_ROUND_UP(s->len, s->block_size)) { in sparse_count_chunks()
128 unsigned int last_block = 0; in write_all_blocks() local
133 if (backed_block_block(bb) > last_block) { in write_all_blocks()
134 unsigned int blocks = backed_block_block(bb) - last_block; in write_all_blocks()
138 last_block = backed_block_block(bb) + in write_all_blocks()
142 pad = s->len - (int64_t)last_block * s->block_size; in write_all_blocks()
/system/extras/ext4_utils/
Dext2simg.c134 u32 last_block = min(info.blocks_per_group, aux_info.len_blocks - first_block); in build_sparse_ext() local
148 for (block = 0; block < last_block; block++) { in build_sparse_ext()
167 u32 len_blocks = last_block - start_contiguous_block; in build_sparse_ext()
Dindirect.c472 u32 last_block = EXT4_NDIR_BLOCKS + aux_info.blocks_per_ind + in inode_attach_resize() local
477 size = (u64)last_block * info.block_size; in inode_attach_resize()