Lines Matching refs:bb
82 struct backed_block *bb;
86 for (bb = backed_block_iter_new(s->backed_block_list); bb;
87 bb = backed_block_iter_next(bb)) {
88 if (backed_block_block(bb) > last_block) {
93 last_block = backed_block_block(bb) +
94 DIV_ROUND_UP(backed_block_len(bb), s->block_size);
104 struct backed_block *bb)
106 switch (backed_block_type(bb)) {
108 write_data_chunk(out, backed_block_len(bb), backed_block_data(bb));
111 write_file_chunk(out, backed_block_len(bb),
112 backed_block_filename(bb), backed_block_file_offset(bb));
115 write_fd_chunk(out, backed_block_len(bb),
116 backed_block_fd(bb), backed_block_file_offset(bb));
119 write_fill_chunk(out, backed_block_len(bb),
120 backed_block_fill_val(bb));
127 struct backed_block *bb;
131 for (bb = backed_block_iter_new(s->backed_block_list); bb;
132 bb = backed_block_iter_next(bb)) {
133 if (backed_block_block(bb) > last_block) {
134 unsigned int blocks = backed_block_block(bb) - last_block;
137 sparse_file_write_block(out, bb);
138 last_block = backed_block_block(bb) +
139 DIV_ROUND_UP(backed_block_len(bb), s->block_size);
229 struct backed_block *bb;
248 for (bb = start; bb; bb = backed_block_iter_next(bb)) {
251 sparse_file_write_block(out_counter, bb);
259 backed_block_split(from->backed_block_list, bb, len - file_len);
260 last_bb = bb;
265 last_bb = bb;
274 return bb;
280 struct backed_block *bb;
294 bb = move_chunks_up_to_len(in_s, s, max_len);
304 } while (bb);