Lines Matching refs:blk
253 static void write_block(int blk, char *buffer) in write_block() argument
255 xlseek(dev_fd, blk * BLOCK_SIZE, SEEK_SET); in write_block()
261 int blk; in get_free_block() local
266 blk = G.good_blocks_table[G.used_good_blocks - 1] + 1; in get_free_block()
268 blk = SB_FIRSTZONE; in get_free_block()
269 while (blk < SB_ZONES && zone_in_use(blk)) in get_free_block()
270 blk++; in get_free_block()
271 if (blk >= SB_ZONES) in get_free_block()
273 G.good_blocks_table[G.used_good_blocks] = blk; in get_free_block()
275 return blk; in get_free_block()
280 int blk; in mark_good_blocks() local
282 for (blk = 0; blk < G.used_good_blocks; blk++) in mark_good_blocks()
283 mark_zone(G.good_blocks_table[blk]); in mark_good_blocks()