dm_thin_get_mapped_count
int dm_thin_get_mapped_count(struct dm_thin_device *td, dm_block_t *result);
r = dm_thin_get_mapped_count(tc->td, &mapped);