Lines Matching refs:bzone
177 struct dm_zone *rzone, *bzone; in dmz_handle_read() local
195 bzone = zone->bzone; in dmz_handle_read()
215 if (!nr_blocks && bzone) { in dmz_handle_read()
216 ret = dmz_block_valid(zmd, bzone, chunk_block); in dmz_handle_read()
222 rzone = bzone; in dmz_handle_read()
256 struct dm_zone *bzone = zone->bzone; in dmz_handle_direct_write() local
272 if (ret == 0 && bzone) in dmz_handle_direct_write()
273 ret = dmz_invalidate_blocks(zmd, bzone, chunk_block, nr_blocks); in dmz_handle_direct_write()
289 struct dm_zone *bzone; in dmz_handle_buffered_write() local
293 bzone = dmz_get_chunk_buffer(zmd, zone); in dmz_handle_buffered_write()
294 if (IS_ERR(bzone)) in dmz_handle_buffered_write()
295 return PTR_ERR(bzone); in dmz_handle_buffered_write()
297 if (dmz_is_readonly(bzone)) in dmz_handle_buffered_write()
301 ret = dmz_submit_bio(dmz, bzone, bio, chunk_block, nr_blocks); in dmz_handle_buffered_write()
309 ret = dmz_validate_blocks(zmd, bzone, chunk_block, nr_blocks); in dmz_handle_buffered_write()
387 if (ret == 0 && zone->bzone) in dmz_handle_discard()
388 ret = dmz_invalidate_blocks(zmd, zone->bzone, in dmz_handle_discard()