Lines Matching refs:chunk_block
117 struct bio *bio, sector_t chunk_block, in dmz_submit_bio() argument
134 dmz_start_sect(dmz->metadata, zone) + dmz_blk2sect(chunk_block); in dmz_submit_bio()
154 sector_t chunk_block, unsigned int nr_blocks) in dmz_handle_read_zero() argument
173 sector_t chunk_block = dmz_chunk_block(zmd, dmz_bio_block(bio)); in dmz_handle_read() local
175 sector_t end_block = chunk_block + nr_blocks; in dmz_handle_read()
191 (unsigned long long)chunk_block, nr_blocks); in dmz_handle_read()
195 while (chunk_block < end_block) { in dmz_handle_read()
198 chunk_block < zone->wp_block) { in dmz_handle_read()
200 ret = dmz_block_valid(zmd, zone, chunk_block); in dmz_handle_read()
215 ret = dmz_block_valid(zmd, bzone, chunk_block); in dmz_handle_read()
228 end_block - chunk_block); in dmz_handle_read()
230 chunk_block, nr_blocks); in dmz_handle_read()
233 chunk_block += nr_blocks; in dmz_handle_read()
236 dmz_handle_read_zero(dmz, bio, chunk_block, 1); in dmz_handle_read()
237 chunk_block++; in dmz_handle_read()
251 sector_t chunk_block, in dmz_handle_direct_write() argument
262 ret = dmz_submit_bio(dmz, zone, bio, chunk_block, nr_blocks); in dmz_handle_direct_write()
270 ret = dmz_validate_blocks(zmd, zone, chunk_block, nr_blocks); in dmz_handle_direct_write()
272 ret = dmz_invalidate_blocks(zmd, bzone, chunk_block, nr_blocks); in dmz_handle_direct_write()
284 sector_t chunk_block, in dmz_handle_buffered_write() argument
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()
309 if (ret == 0 && chunk_block < zone->wp_block) in dmz_handle_buffered_write()
310 ret = dmz_invalidate_blocks(zmd, zone, chunk_block, nr_blocks); in dmz_handle_buffered_write()
322 sector_t chunk_block = dmz_chunk_block(zmd, dmz_bio_block(bio)); in dmz_handle_write() local
334 (unsigned long long)chunk_block, nr_blocks); in dmz_handle_write()
337 chunk_block == zone->wp_block) { in dmz_handle_write()
344 chunk_block, nr_blocks); in dmz_handle_write()
351 return dmz_handle_buffered_write(dmz, zone, bio, chunk_block, nr_blocks); in dmz_handle_write()
363 sector_t chunk_block = dmz_chunk_block(zmd, block); in dmz_handle_discard() local
377 (unsigned long long)chunk_block, nr_blocks); in dmz_handle_discard()
384 chunk_block < zone->wp_block) in dmz_handle_discard()
385 ret = dmz_invalidate_blocks(zmd, zone, chunk_block, nr_blocks); in dmz_handle_discard()
388 chunk_block, nr_blocks); in dmz_handle_discard()