Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/md/
Ddm-cache-block-types.h34 static inline dm_cblock_t to_cblock(uint32_t b) in to_cblock() function
Ddm-cache-metadata.c593 cmd->cache_blocks = to_cblock(le32_to_cpu(disk_super->cache_blocks)); in read_superblock_fields()
923 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_combined_dirty()
969 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_separate_dirty()
1355 r = fn(context, oblock, to_cblock(cb), dirty, in __load_mapping_v1()
1359 (unsigned long long) from_cblock(to_cblock(cb))); in __load_mapping_v1()
1397 r = fn(context, oblock, to_cblock(cb), dirty, in __load_mapping_v2()
1401 (unsigned long long) from_cblock(to_cblock(cb))); in __load_mapping_v2()
1580 r = __dirty(cmd, to_cblock(i), test_bit(i, bits)); in __set_dirty_bits_v1()
1698 value = policy_get_hint(policy, to_cblock(index)); in get_hint()
Ddm-cache-target.c2397 set_cache_size(cache, to_cblock(cache_size)); in cache_create()
2400 set_cache_size(cache, to_cblock(ca->cache_sectors >> cache->sectors_per_block_shift)); in cache_create()
2864 return to_cblock(size); in get_cache_dev_size()
2881 new_size = to_cblock(from_cblock(new_size) + 1); in can_resize()
3179 result->begin = to_cblock(b); in parse_cblock_range()
3180 result->end = to_cblock(e); in parse_cblock_range()
3192 result->begin = to_cblock(b); in parse_cblock_range()
3193 result->end = to_cblock(from_cblock(result->begin) + 1u); in parse_cblock_range()
3230 return to_cblock(from_cblock(b) + 1); in cblock_succ()
Ddm-cache-policy-smq.c988 return to_cblock(get_index(&mq->cache_alloc, e)); in infer_cblock()
1612 r = to_cblock(mq->cache_alloc.nr_allocated); in smq_residency()