Lines Matching refs:bzone
176 struct dm_zone *rzone, *bzone; in dmz_handle_read() local
194 bzone = zone->bzone; in dmz_handle_read()
214 if (!nr_blocks && bzone) { in dmz_handle_read()
215 ret = dmz_block_valid(zmd, bzone, chunk_block); in dmz_handle_read()
221 rzone = bzone; in dmz_handle_read()
255 struct dm_zone *bzone = zone->bzone; in dmz_handle_direct_write() local
271 if (ret == 0 && bzone) in dmz_handle_direct_write()
272 ret = dmz_invalidate_blocks(zmd, bzone, chunk_block, nr_blocks); in dmz_handle_direct_write()
288 struct dm_zone *bzone; in dmz_handle_buffered_write() local
292 bzone = dmz_get_chunk_buffer(zmd, zone); in dmz_handle_buffered_write()
293 if (IS_ERR(bzone)) in dmz_handle_buffered_write()
294 return PTR_ERR(bzone); in dmz_handle_buffered_write()
296 if (dmz_is_readonly(bzone)) in dmz_handle_buffered_write()
300 ret = dmz_submit_bio(dmz, bzone, bio, chunk_block, nr_blocks); in dmz_handle_buffered_write()
308 ret = dmz_validate_blocks(zmd, bzone, chunk_block, nr_blocks); in dmz_handle_buffered_write()
386 if (ret == 0 && zone->bzone) in dmz_handle_discard()
387 ret = dmz_invalidate_blocks(zmd, zone->bzone, in dmz_handle_discard()