Searched refs:from_cblock (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/md/ |
A D | dm-cache-metadata.c | 923 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_combined_dirty() 937 if (from_cblock(cmd->cache_blocks) == 0) in blocks_are_clean_separate_dirty() 969 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_separate_dirty() 1055 if (from_cblock(new_cache_size) < from_cblock(cmd->cache_blocks)) { in dm_cache_resize() 1071 from_cblock(new_cache_size), in dm_cache_resize() 1078 from_cblock(cmd->cache_blocks), from_cblock(new_cache_size), in dm_cache_resize() 1417 if (from_cblock(cmd->cache_blocks) == 0) in __load_mappings() 1435 from_cblock(cmd->cache_blocks), in __load_mappings() 1461 if (cb >= (from_cblock(cmd->cache_blocks) - 1)) in __load_mappings() 1601 if (nr_bits != from_cblock(cmd->cache_blocks)) { in __set_dirty_bits_v2() [all …]
|
A D | dm-cache-policy-smq.c | 1107 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size)); in end_cache_period() 1127 return from_cblock(mq->cache_size) * p / 100u; in percent_to_target() 1463 from_cblock(work->cblock)); in __complete_background_work() 1519 struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); in __smq_set_clear_dirty() 1552 return hash_32(from_cblock(cblock), 9) & (NR_CACHE_LEVELS - 1); in random_level() 1562 e = alloc_particular_entry(&mq->cache_alloc, from_cblock(cblock)); in smq_load_mapping() 1580 struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); in smq_invalidate_mapping() 1769 if (from_cblock(cache_size)) { in __smq_create() 1770 mq->cache_hit_bits = alloc_bitset(from_cblock(cache_size)); in __smq_create() 1775 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size)); in __smq_create() [all …]
|
A D | dm-cache-target.c | 606 return test_bit(from_cblock(b), cache->dirty_bitset); in is_dirty() 720 sector_t block = from_cblock(cblock); in remap_to_cache() 2339 dm_block_t nr_blocks = from_cblock(size); in set_cache_size() 2776 set_bit(from_cblock(cblock), cache->dirty_bitset); in load_mapping() 2877 if (from_cblock(new_size) > from_cblock(cache->cache_size)) { in can_resize() 2888 while (from_cblock(new_size) < from_cblock(cache->cache_size)) { in can_resize() 2889 new_size = to_cblock(from_cblock(new_size) + 1); in can_resize() 3211 uint64_t b = from_cblock(range->begin); in validate_cblock_range() 3212 uint64_t e = from_cblock(range->end); in validate_cblock_range() 3213 uint64_t n = from_cblock(cache->cache_size); in validate_cblock_range() [all …]
|
A D | dm-cache-block-types.h | 39 static inline uint32_t from_cblock(dm_cblock_t b) in from_cblock() function
|
Completed in 23 milliseconds