Lines Matching refs:dm_block_t
121 dm_block_t b, dm_block_t e, struct dm_cell_key *key) in build_key()
129 static void build_data_key(struct dm_thin_device *td, dm_block_t b, in build_data_key()
135 static void build_virtual_key(struct dm_thin_device *td, dm_block_t b, in build_virtual_key()
238 dm_block_t low_water_blocks;
328 dm_block_t low_water_blocks;
369 static sector_t block_to_sectors(struct pool *pool, dm_block_t b) in block_to_sectors()
395 static int issue_discard(struct discard_op *op, dm_block_t data_b, dm_block_t data_e) in issue_discard()
675 static dm_block_t get_bio_block(struct thin_c *tc, struct bio *bio) in get_bio_block()
692 dm_block_t *begin, dm_block_t *end) in get_bio_block_range()
716 static void remap(struct thin_c *tc, struct bio *bio, dm_block_t block) in remap()
788 dm_block_t block) in remap_and_issue()
814 dm_block_t virt_begin, virt_end;
815 dm_block_t data_block;
928 dm_block_t block) in inc_remap_and_issue_cell()
1086 dm_block_t b = m->data_block, e, end = m->data_block + m->virt_end - m->virt_begin; in passdown_double_checking_shared_status()
1151 dm_block_t data_end = m->data_block + (m->virt_end - m->virt_begin); in process_prepared_discard_passdown_pt1()
1291 dm_block_t data_begin, in remap_and_issue_overwrite()
1307 static void schedule_copy(struct thin_c *tc, dm_block_t virt_block, in schedule_copy()
1308 struct dm_dev *origin, dm_block_t data_origin, in schedule_copy()
1309 dm_block_t data_dest, in schedule_copy()
1368 static void schedule_internal_copy(struct thin_c *tc, dm_block_t virt_block, in schedule_internal_copy()
1369 dm_block_t data_origin, dm_block_t data_dest, in schedule_internal_copy()
1377 static void schedule_zero(struct thin_c *tc, dm_block_t virt_block, in schedule_zero()
1378 dm_block_t data_block, struct dm_bio_prison_cell *cell, in schedule_zero()
1406 static void schedule_external_copy(struct thin_c *tc, dm_block_t virt_block, in schedule_external_copy()
1407 dm_block_t data_dest, in schedule_external_copy()
1446 dm_block_t nr_free; in check_for_metadata_space()
1463 dm_block_t nr_free; in check_for_data_space()
1500 static void check_low_water_mark(struct pool *pool, dm_block_t free_blocks) in check_low_water_mark()
1512 static int alloc_data_block(struct thin_c *tc, dm_block_t *result) in alloc_data_block()
1515 dm_block_t free_blocks; in alloc_data_block()
1663 static void break_up_discard_bio(struct thin_c *tc, dm_block_t begin, dm_block_t end, in break_up_discard_bio()
1673 dm_block_t virt_begin, virt_end, data_begin; in break_up_discard_bio()
1749 dm_block_t begin, end; in process_discard_bio()
1776 static void break_sharing(struct thin_c *tc, struct bio *bio, dm_block_t block, in break_sharing()
1782 dm_block_t data_block; in break_sharing()
1826 dm_block_t block) in remap_and_issue_shared_cell()
1846 dm_block_t block, in process_shared_bio()
1879 static void provision_block(struct thin_c *tc, struct bio *bio, dm_block_t block, in provision_block()
1883 dm_block_t data_block; in provision_block()
1933 dm_block_t block = get_bio_block(tc, bio); in process_cell()
1986 dm_block_t block = get_bio_block(tc, bio); in process_bio()
2006 dm_block_t block = get_bio_block(tc, bio); in __process_bio_read_only()
2700 dm_block_t block = get_bio_block(tc, bio); in thin_bio_map()
3212 static dm_block_t get_metadata_dev_size_in_blocks(struct block_device *bdev) in get_metadata_dev_size_in_blocks()
3227 static dm_block_t calc_metadata_threshold(struct pool_c *pt) in calc_metadata_threshold()
3234 dm_block_t quarter = get_metadata_dev_size_in_blocks(pt->metadata_dev->bdev) / 4; in calc_metadata_threshold()
3235 return min((dm_block_t)1024ULL /* 4M */, quarter); in calc_metadata_threshold()
3260 dm_block_t low_water_blocks; in pool_ctr()
3427 dm_block_t sb_data_size; in maybe_resize_data_dev()
3474 dm_block_t metadata_dev_size, sb_metadata_dev_size; in maybe_resize_metadata_dev()
3878 dm_block_t nr_free_blocks_data; in pool_status()
3879 dm_block_t nr_free_blocks_metadata; in pool_status()
3880 dm_block_t nr_blocks_data; in pool_status()
3881 dm_block_t nr_blocks_metadata; in pool_status()
3882 dm_block_t held_root; in pool_status()
4364 dm_block_t mapped, highest; in thin_status()