Home
last modified time | relevance | path

Searched refs:from_cblock (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/md/
H A Ddm-cache-metadata.c931 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_combined_dirty()
945 if (from_cblock(cmd->cache_blocks) == 0) in blocks_are_clean_separate_dirty()
977 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_separate_dirty()
1063 if (from_cblock(new_cache_size) < from_cblock(cmd->cache_blocks)) { in dm_cache_resize()
1079 from_cblock(new_cache_size), in dm_cache_resize()
1086 from_cblock(cmd->cache_blocks), from_cblock(new_cache_size), in dm_cache_resize()
1426 if (from_cblock(cmd->cache_blocks) == 0) in __load_mappings()
1444 from_cblock(cmd->cache_blocks), in __load_mappings()
1470 if (cb >= (from_cblock(cmd->cache_blocks) - 1)) in __load_mappings()
1610 if (nr_bits != from_cblock(cmd->cache_blocks)) { in __set_dirty_bits_v2()
[all …]
H A Ddm-cache-policy-smq.c1118 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size)); in end_cache_period()
1138 return from_cblock(mq->cache_size) * p / 100u; in percent_to_target()
1474 from_cblock(work->cblock)); in __complete_background_work()
1530 struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); in __smq_set_clear_dirty()
1563 return hash_32(from_cblock(cblock), 9) & (NR_CACHE_LEVELS - 1); in random_level()
1573 e = alloc_particular_entry(&mq->cache_alloc, from_cblock(cblock)); in smq_load_mapping()
1591 struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); in smq_invalidate_mapping()
1779 if (from_cblock(cache_size)) { in __smq_create()
1780 mq->cache_hit_bits = alloc_bitset(from_cblock(cache_size)); in __smq_create()
1785 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size)); in __smq_create()
[all …]
H A Ddm-cache-target.c610 return test_bit(from_cblock(b), cache->dirty_bitset); in is_dirty()
728 sector_t block = from_cblock(cblock); in remap_to_cache()
2362 dm_block_t nr_blocks = from_cblock(size); in set_cache_size()
2800 set_bit(from_cblock(cblock), cache->dirty_bitset); in load_mapping()
2901 if (from_cblock(new_size) > from_cblock(cache->cache_size)) { in can_resize()
2912 while (from_cblock(new_size) < from_cblock(cache->cache_size)) { in can_resize()
2913 new_size = to_cblock(from_cblock(new_size) + 1); in can_resize()
3235 uint64_t b = from_cblock(range->begin); in validate_cblock_range()
3236 uint64_t e = from_cblock(range->end); in validate_cblock_range()
3237 uint64_t n = from_cblock(cache->cache_size); in validate_cblock_range()
[all …]
H A Ddm-cache-block-types.h40 static inline uint32_t from_cblock(dm_cblock_t b) in from_cblock() function