Lines Matching refs:metadata_dev_size
3195 sector_t metadata_dev_size = get_dev_size(bdev); in warn_if_metadata_device_too_big() local
3197 if (metadata_dev_size > THIN_METADATA_MAX_SECTORS_WARNING) in warn_if_metadata_device_too_big()
3204 sector_t metadata_dev_size = get_dev_size(bdev); in get_metadata_dev_size() local
3206 if (metadata_dev_size > THIN_METADATA_MAX_SECTORS) in get_metadata_dev_size()
3207 metadata_dev_size = THIN_METADATA_MAX_SECTORS; in get_metadata_dev_size()
3209 return metadata_dev_size; in get_metadata_dev_size()
3214 sector_t metadata_dev_size = get_metadata_dev_size(bdev); in get_metadata_dev_size_in_blocks() local
3216 sector_div(metadata_dev_size, THIN_METADATA_BLOCK_SIZE); in get_metadata_dev_size_in_blocks()
3218 return metadata_dev_size; in get_metadata_dev_size_in_blocks()
3474 dm_block_t metadata_dev_size, sb_metadata_dev_size; in maybe_resize_metadata_dev() local
3478 metadata_dev_size = get_metadata_dev_size_in_blocks(pool->md_dev); in maybe_resize_metadata_dev()
3487 if (metadata_dev_size < sb_metadata_dev_size) { in maybe_resize_metadata_dev()
3490 metadata_dev_size, sb_metadata_dev_size); in maybe_resize_metadata_dev()
3493 } else if (metadata_dev_size > sb_metadata_dev_size) { in maybe_resize_metadata_dev()
3503 sb_metadata_dev_size, metadata_dev_size); in maybe_resize_metadata_dev()
3508 r = dm_pool_resize_metadata_dev(pool->pmd, metadata_dev_size); in maybe_resize_metadata_dev()