Lines Matching refs:nr_blocks
287 *count = smm->ll.nr_blocks; in sm_metadata_get_nr_blocks()
296 *count = smm->old_ll.nr_blocks - smm->old_ll.nr_allocated - in sm_metadata_get_nr_free()
458 r = sm_ll_find_common_free_block(&smm->old_ll, &smm->ll, smm->begin, smm->ll.nr_blocks, b); in sm_metadata_new_block_()
548 root_le.nr_blocks = cpu_to_le64(smm->ll.nr_blocks); in sm_metadata_copy_root()
601 *count = smm->ll.nr_blocks; in sm_bootstrap_get_nr_blocks()
610 *count = smm->ll.nr_blocks - smm->begin; in sm_bootstrap_get_nr_free()
648 if (smm->begin == smm->ll.nr_blocks) in sm_bootstrap_new_block()
723 dm_block_t old_len = smm->ll.nr_blocks; in sm_metadata_extend()
786 dm_block_t nr_blocks, in dm_sm_metadata_create() argument
802 if (nr_blocks > DM_SM_METADATA_MAX_BLOCKS) in dm_sm_metadata_create()
803 nr_blocks = DM_SM_METADATA_MAX_BLOCKS; in dm_sm_metadata_create()
804 r = sm_ll_extend(&smm->ll, nr_blocks); in dm_sm_metadata_create()