Lines Matching refs:sectors_per_block
239 uint32_t sectors_per_block; member
375 (b * pool->sectors_per_block); in block_to_sectors()
685 (void) sector_div(block_nr, pool->sectors_per_block); in get_bio_block()
700 b += pool->sectors_per_block - 1ull; /* so we round up */ in get_bio_block_range()
706 (void) sector_div(b, pool->sectors_per_block); in get_bio_block_range()
707 (void) sector_div(e, pool->sectors_per_block); in get_bio_block_range()
727 (bi_sector & (pool->sectors_per_block - 1)); in remap()
729 bio->bi_iter.bi_sector = (block * pool->sectors_per_block) + in remap()
730 sector_div(bi_sector, pool->sectors_per_block); in remap()
1247 (pool->sectors_per_block << SECTOR_SHIFT); in io_overlaps_block()
1354 from.sector = data_origin * pool->sectors_per_block; in schedule_copy()
1358 to.sector = data_dest * pool->sectors_per_block; in schedule_copy()
1367 if (len < pool->sectors_per_block && pool->pf.zero_new_blocks) { in schedule_copy()
1370 data_dest * pool->sectors_per_block + len, in schedule_copy()
1371 (data_dest + 1) * pool->sectors_per_block); in schedule_copy()
1384 tc->pool->sectors_per_block); in schedule_internal_copy()
1410 ll_zero(tc, m, data_block * pool->sectors_per_block, in schedule_zero()
1411 (data_block + 1) * pool->sectors_per_block); in schedule_zero()
1421 sector_t virt_block_begin = virt_block * pool->sectors_per_block; in schedule_external_copy()
1422 sector_t virt_block_end = (virt_block + 1) * pool->sectors_per_block; in schedule_external_copy()
1427 pool->sectors_per_block); in schedule_external_copy()
2847 else if (data_limits->max_discard_sectors < pool->sectors_per_block) in disable_passdown_if_not_supported()
2954 pool->sectors_per_block = block_size; in pool_create()
3462 (void) sector_div(data_size, pool->sectors_per_block); in maybe_resize_data_dev()
4026 (unsigned long)pool->sectors_per_block, in pool_status()
4064 if (limits->max_sectors < pool->sectors_per_block) { in pool_io_hints()
4065 while (!is_factor(pool->sectors_per_block, limits->max_sectors)) { in pool_io_hints()
4076 if (io_opt_sectors < pool->sectors_per_block || in pool_io_hints()
4077 !is_factor(io_opt_sectors, pool->sectors_per_block)) { in pool_io_hints()
4078 if (is_factor(pool->sectors_per_block, limits->max_sectors)) in pool_io_hints()
4081 blk_limits_io_min(limits, pool->sectors_per_block << SECTOR_SHIFT); in pool_io_hints()
4082 blk_limits_io_opt(limits, pool->sectors_per_block << SECTOR_SHIFT); in pool_io_hints()
4262 r = dm_set_target_max_io_len(ti, tc->pool->sectors_per_block); in thin_ctr()
4431 DMEMIT("%llu ", mapped * tc->pool->sectors_per_block); in thin_status()
4434 tc->pool->sectors_per_block) - 1); in thin_status()
4474 (void) sector_div(blocks, pool->sectors_per_block); in thin_iterate_devices()
4476 return fn(ti, tc->pool_dev, 0, pool->sectors_per_block * blocks, data); in thin_iterate_devices()
4489 limits->discard_granularity = pool->sectors_per_block << SECTOR_SHIFT; in thin_io_hints()