Home
last modified time | relevance | path

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

/linux/drivers/md/
H A Ddm-cache-target.c612 return test_bit(from_cblock(b), cache->dirty_bitset); in is_dirty()
617 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) { in set_dirty()
629 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) in force_set_dirty()
636 if (test_and_clear_bit(from_cblock(cblock), cache->dirty_bitset)) { in force_clear_dirty()
730 sector_t block = from_cblock(cblock); in remap_to_cache()
1112 c_region.sector = from_cblock(mg->op->cblock) * cache->sectors_per_block; in copy()
2405 dm_block_t nr_blocks = from_cblock(size); in set_cache_size()
2517 cache->dirty_bitset = alloc_bitset(from_cblock(cache->cache_size)); in cache_create()
2522 clear_bitset(cache->dirty_bitset, from_cblock(cache->cache_size)); in cache_create()
2536 cache->invalid_bitset = alloc_bitset(from_cblock(cache->cache_size)); in cache_create()
[all …]
H A Ddm-cache-block-types.h40 static inline uint32_t from_cblock(dm_cblock_t b) in from_cblock() function