Lines Matching refs:sectors_per_block

239 	uint32_t sectors_per_block;  member
373 (b * pool->sectors_per_block); in block_to_sectors()
683 (void) sector_div(block_nr, pool->sectors_per_block); in get_bio_block()
698 b += pool->sectors_per_block - 1ull; /* so we round up */ in get_bio_block_range()
704 (void) sector_div(b, pool->sectors_per_block); in get_bio_block_range()
705 (void) sector_div(e, pool->sectors_per_block); in get_bio_block_range()
725 (bi_sector & (pool->sectors_per_block - 1)); in remap()
727 bio->bi_iter.bi_sector = (block * pool->sectors_per_block) + in remap()
728 sector_div(bi_sector, pool->sectors_per_block); in remap()
1237 (pool->sectors_per_block << SECTOR_SHIFT); in io_overlaps_block()
1344 from.sector = data_origin * pool->sectors_per_block; in schedule_copy()
1348 to.sector = data_dest * pool->sectors_per_block; in schedule_copy()
1357 if (len < pool->sectors_per_block && pool->pf.zero_new_blocks) { in schedule_copy()
1360 data_dest * pool->sectors_per_block + len, in schedule_copy()
1361 (data_dest + 1) * pool->sectors_per_block); in schedule_copy()
1374 tc->pool->sectors_per_block); in schedule_internal_copy()
1400 ll_zero(tc, m, data_block * pool->sectors_per_block, in schedule_zero()
1401 (data_block + 1) * pool->sectors_per_block); in schedule_zero()
1411 sector_t virt_block_begin = virt_block * pool->sectors_per_block; in schedule_external_copy()
1412 sector_t virt_block_end = (virt_block + 1) * pool->sectors_per_block; in schedule_external_copy()
1417 pool->sectors_per_block); in schedule_external_copy()
2827 else if (data_limits->max_discard_sectors < pool->sectors_per_block) in disable_passdown_if_not_supported()
2931 pool->sectors_per_block = block_size; in pool_create()
3431 (void) sector_div(data_size, pool->sectors_per_block); in maybe_resize_data_dev()
3987 (unsigned long)pool->sectors_per_block, in pool_status()
4025 if (limits->max_sectors < pool->sectors_per_block) { in pool_io_hints()
4026 while (!is_factor(pool->sectors_per_block, limits->max_sectors)) { in pool_io_hints()
4037 if (io_opt_sectors < pool->sectors_per_block || in pool_io_hints()
4038 !is_factor(io_opt_sectors, pool->sectors_per_block)) { in pool_io_hints()
4039 if (is_factor(pool->sectors_per_block, limits->max_sectors)) in pool_io_hints()
4042 blk_limits_io_min(limits, pool->sectors_per_block << SECTOR_SHIFT); in pool_io_hints()
4043 blk_limits_io_opt(limits, pool->sectors_per_block << SECTOR_SHIFT); in pool_io_hints()
4221 r = dm_set_target_max_io_len(ti, tc->pool->sectors_per_block); in thin_ctr()
4390 DMEMIT("%llu ", mapped * tc->pool->sectors_per_block); in thin_status()
4393 tc->pool->sectors_per_block) - 1); in thin_status()
4433 (void) sector_div(blocks, pool->sectors_per_block); in thin_iterate_devices()
4435 return fn(ti, tc->pool_dev, 0, pool->sectors_per_block * blocks, data); in thin_iterate_devices()
4448 limits->discard_granularity = pool->sectors_per_block << SECTOR_SHIFT; in thin_io_hints()