Lines Matching refs:metadata_dev_size
3230 sector_t metadata_dev_size = get_dev_size(bdev); in warn_if_metadata_device_too_big() local
3232 if (metadata_dev_size > THIN_METADATA_MAX_SECTORS_WARNING) in warn_if_metadata_device_too_big()
3239 sector_t metadata_dev_size = get_dev_size(bdev); in get_metadata_dev_size() local
3241 if (metadata_dev_size > THIN_METADATA_MAX_SECTORS) in get_metadata_dev_size()
3242 metadata_dev_size = THIN_METADATA_MAX_SECTORS; in get_metadata_dev_size()
3244 return metadata_dev_size; in get_metadata_dev_size()
3249 sector_t metadata_dev_size = get_metadata_dev_size(bdev); in get_metadata_dev_size_in_blocks() local
3251 sector_div(metadata_dev_size, THIN_METADATA_BLOCK_SIZE); in get_metadata_dev_size_in_blocks()
3253 return metadata_dev_size; in get_metadata_dev_size_in_blocks()
3510 dm_block_t metadata_dev_size, sb_metadata_dev_size; in maybe_resize_metadata_dev() local
3514 metadata_dev_size = get_metadata_dev_size_in_blocks(pool->md_dev); in maybe_resize_metadata_dev()
3523 if (metadata_dev_size < sb_metadata_dev_size) { in maybe_resize_metadata_dev()
3526 metadata_dev_size, sb_metadata_dev_size); in maybe_resize_metadata_dev()
3529 } else if (metadata_dev_size > sb_metadata_dev_size) { in maybe_resize_metadata_dev()
3539 sb_metadata_dev_size, metadata_dev_size); in maybe_resize_metadata_dev()
3544 r = dm_pool_resize_metadata_dev(pool->pmd, metadata_dev_size); in maybe_resize_metadata_dev()