Lines Matching full:ll
169 struct ll_disk ll; member
199 r = sm_ll_inc(&smm->ll, op->b, op->e, &nr_allocations); in commit_bop()
203 r = sm_ll_dec(&smm->ll, op->b, op->e, &nr_allocations); in commit_bop()
284 *count = smm->ll.nr_blocks; in sm_metadata_get_nr_blocks()
330 r = sm_ll_lookup(&smm->ll, b, result); in sm_metadata_get_count()
376 r = sm_ll_lookup_bitmap(&smm->ll, b, &rc); in sm_metadata_count_is_more_than_one()
404 r = sm_ll_insert(&smm->ll, b, count, &nr_allocations); in sm_metadata_set_count()
422 r = sm_ll_inc(&smm->ll, b, e, &nr_allocations); in sm_metadata_inc_blocks()
439 r = sm_ll_dec(&smm->ll, b, e, &nr_allocations); in sm_metadata_dec_blocks()
453 * Any block we allocate has to be free in both the old and current ll. in sm_metadata_new_block_()
455 r = sm_ll_find_common_free_block(&smm->old_ll, &smm->ll, smm->begin, smm->ll.nr_blocks, b); in sm_metadata_new_block_()
461 r = sm_ll_find_common_free_block(&smm->old_ll, &smm->ll, 0, smm->begin, b); in sm_metadata_new_block_()
473 r = sm_ll_inc(&smm->ll, *b, *b + 1, &nr_allocations); in sm_metadata_new_block_()
510 r = sm_ll_commit(&smm->ll); in sm_metadata_commit()
514 memcpy(&smm->old_ll, &smm->ll, sizeof(smm->old_ll)); in sm_metadata_commit()
544 root_le.nr_blocks = cpu_to_le64(smm->ll.nr_blocks); in sm_metadata_copy_root()
545 root_le.nr_allocated = cpu_to_le64(smm->ll.nr_allocated); in sm_metadata_copy_root()
546 root_le.bitmap_root = cpu_to_le64(smm->ll.bitmap_root); in sm_metadata_copy_root()
547 root_le.ref_count_root = cpu_to_le64(smm->ll.ref_count_root); in sm_metadata_copy_root()
597 *count = smm->ll.nr_blocks; in sm_bootstrap_get_nr_blocks()
606 *count = smm->ll.nr_blocks - smm->begin; in sm_bootstrap_get_nr_free()
644 if (smm->begin == smm->ll.nr_blocks) in sm_bootstrap_new_block()
719 dm_block_t old_len = smm->ll.nr_blocks; in sm_metadata_extend()
730 r = sm_ll_extend(&smm->ll, extra_blocks); in sm_metadata_extend()
751 r = sm_ll_commit(&smm->ll); in sm_metadata_extend()
796 r = sm_ll_new_metadata(&smm->ll, tm); in dm_sm_metadata_create()
800 r = sm_ll_extend(&smm->ll, nr_blocks); in dm_sm_metadata_create()
830 r = sm_ll_open_metadata(&smm->ll, tm, root_le, len); in dm_sm_metadata_open()
840 memcpy(&smm->old_ll, &smm->ll, sizeof(smm->old_ll)); in dm_sm_metadata_open()