Lines Matching refs:dm_block_t

237 int sm_ll_extend(struct ll_disk *ll, dm_block_t extra_blocks)
240 dm_block_t i, nr_blocks, nr_indexes;
280 int sm_ll_lookup_bitmap(struct ll_disk *ll, dm_block_t b, uint32_t *result)
283 dm_block_t index = b;
309 static int sm_ll_lookup_big_ref_count(struct ll_disk *ll, dm_block_t b,
324 int sm_ll_lookup(struct ll_disk *ll, dm_block_t b, uint32_t *result)
337 int sm_ll_find_free_block(struct ll_disk *ll, dm_block_t begin,
338 dm_block_t end, dm_block_t *result)
342 dm_block_t i, index_begin = begin;
343 dm_block_t index_end = dm_sector_div_up(end, ll->entries_per_block);
386 *result = i * ll->entries_per_block + (dm_block_t) position;
394 dm_block_t begin, dm_block_t end, dm_block_t *b)
422 int sm_ll_insert(struct ll_disk *ll, dm_block_t b,
428 dm_block_t index = b;
551 static int __sm_ll_inc_overflow(struct ll_disk *ll, dm_block_t b, struct inc_context *ic)
584 static int sm_ll_inc_overflow(struct ll_disk *ll, dm_block_t b, struct inc_context *ic)
647 static inline int sm_ll_inc_bitmap(struct ll_disk *ll, dm_block_t b,
649 int32_t *nr_allocations, dm_block_t *new_b,
716 static int __sm_ll_inc(struct ll_disk *ll, dm_block_t b, dm_block_t e,
717 int32_t *nr_allocations, dm_block_t *new_b)
722 dm_block_t index = b;
735 bit_end = min(bit + (e - b), (dm_block_t) ll->entries_per_block);
746 int sm_ll_inc(struct ll_disk *ll, dm_block_t b, dm_block_t e,
762 static int __sm_ll_del_overflow(struct ll_disk *ll, dm_block_t b,
770 static int __sm_ll_dec_overflow(struct ll_disk *ll, dm_block_t b,
804 static int sm_ll_dec_overflow(struct ll_disk *ll, dm_block_t b,
840 static inline int sm_ll_dec_bitmap(struct ll_disk *ll, dm_block_t b,
843 int32_t *nr_allocations, dm_block_t *new_b)
899 static int __sm_ll_dec(struct ll_disk *ll, dm_block_t b, dm_block_t e,
900 int32_t *nr_allocations, dm_block_t *new_b)
905 dm_block_t index = b;
918 bit_end = min(bit + (e - b), (dm_block_t) ll->entries_per_block);
928 int sm_ll_dec(struct ll_disk *ll, dm_block_t b, dm_block_t e,
959 static int metadata_ll_load_ie(struct ll_disk *ll, dm_block_t index,
966 static int metadata_ll_save_ie(struct ll_disk *ll, dm_block_t index,
1006 static dm_block_t metadata_ll_max_entries(struct ll_disk *ll)
1103 static inline unsigned int hash_index(dm_block_t index)
1108 static int disk_ll_load_ie(struct ll_disk *ll, dm_block_t index,
1139 static int disk_ll_save_ie(struct ll_disk *ll, dm_block_t index,
1186 static dm_block_t disk_ll_max_entries(struct ll_disk *ll)