Lines Matching refs:dm_block_t
187 dm_block_t root;
188 dm_block_t details_root;
207 dm_block_t metadata_reserve;
308 static uint64_t pack_block_time(dm_block_t b, uint32_t t) in pack_block_time()
313 static void unpack_block_time(uint64_t v, dm_block_t *b, uint32_t *t) in unpack_block_time()
324 typedef int (*run_fn)(struct dm_space_map *, dm_block_t, dm_block_t);
942 dm_block_t total; in __set_metadata_reserve()
943 dm_block_t max_blocks = 4096; /* 16M */ in __set_metadata_reserve()
1108 dm_block_t dev_root; in __create_thin()
1184 dm_block_t origin_root; in __create_snap()
1337 dm_block_t held_root; in __reserve_metadata_snap()
1419 dm_block_t held_root; in __release_metadata_snap()
1463 dm_block_t *result) in __get_metadata_snap()
1483 dm_block_t *result) in dm_pool_get_metadata_snap()
1537 dm_block_t exception_block; in unpack_lookup_result()
1546 static int __find_block(struct dm_thin_device *td, dm_block_t block, in __find_block()
1552 dm_block_t keys[2] = { td->id, block }; in __find_block()
1567 int dm_thin_find_block(struct dm_thin_device *td, dm_block_t block, in dm_thin_find_block()
1585 static int __find_next_mapped_block(struct dm_thin_device *td, dm_block_t block, in __find_next_mapped_block()
1586 dm_block_t *vblock, in __find_next_mapped_block()
1592 dm_block_t keys[2] = { td->id, block }; in __find_next_mapped_block()
1602 dm_block_t begin, dm_block_t end, in __find_mapped_range()
1603 dm_block_t *thin_begin, dm_block_t *thin_end, in __find_mapped_range()
1604 dm_block_t *pool_begin, bool *maybe_shared) in __find_mapped_range()
1607 dm_block_t pool_end; in __find_mapped_range()
1648 dm_block_t begin, dm_block_t end, in dm_thin_find_mapped_range()
1649 dm_block_t *thin_begin, dm_block_t *thin_end, in dm_thin_find_mapped_range()
1650 dm_block_t *pool_begin, bool *maybe_shared) in dm_thin_find_mapped_range()
1665 static int __insert(struct dm_thin_device *td, dm_block_t block, in __insert()
1666 dm_block_t data_block) in __insert()
1671 dm_block_t keys[2] = { td->id, block }; in __insert()
1688 int dm_thin_insert_block(struct dm_thin_device *td, dm_block_t block, in dm_thin_insert_block()
1689 dm_block_t data_block) in dm_thin_insert_block()
1701 static int __remove_range(struct dm_thin_device *td, dm_block_t begin, dm_block_t end) in __remove_range()
1706 dm_block_t keys[1] = { td->id }; in __remove_range()
1708 dm_block_t mapping_root; in __remove_range()
1761 dm_block_t begin, dm_block_t end) in dm_thin_remove_range()
1773 int dm_pool_block_is_shared(struct dm_pool_metadata *pmd, dm_block_t b, bool *result) in dm_pool_block_is_shared()
1789 int dm_pool_inc_data_range(struct dm_pool_metadata *pmd, dm_block_t b, dm_block_t e) in dm_pool_inc_data_range()
1801 int dm_pool_dec_data_range(struct dm_pool_metadata *pmd, dm_block_t b, dm_block_t e) in dm_pool_dec_data_range()
1852 int dm_pool_alloc_data_block(struct dm_pool_metadata *pmd, dm_block_t *result) in dm_pool_alloc_data_block()
1926 int dm_pool_get_free_block_count(struct dm_pool_metadata *pmd, dm_block_t *result) in dm_pool_get_free_block_count()
1939 dm_block_t *result) in dm_pool_get_free_metadata_block_count()
1959 dm_block_t *result) in dm_pool_get_metadata_dev_size()
1971 int dm_pool_get_data_dev_size(struct dm_pool_metadata *pmd, dm_block_t *result) in dm_pool_get_data_dev_size()
1983 int dm_thin_get_mapped_count(struct dm_thin_device *td, dm_block_t *result) in dm_thin_get_mapped_count()
1998 static int __highest_block(struct dm_thin_device *td, dm_block_t *result) in __highest_block()
2002 dm_block_t thin_root; in __highest_block()
2015 dm_block_t *result) in dm_thin_get_highest_mapped_block()
2028 static int __resize_space_map(struct dm_space_map *sm, dm_block_t new_count) in __resize_space_map()
2031 dm_block_t old_count; in __resize_space_map()
2048 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_data_dev()
2060 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_count) in dm_pool_resize_metadata_dev()
2090 dm_block_t threshold, in dm_pool_register_metadata_threshold()