Home
last modified time | relevance | path

Searched refs:from_dblock (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/md/
Ddm-cache-block-types.h49 static inline dm_block_t from_dblock(dm_dblock_t b) in from_dblock() function
Ddm-cache-metadata.c374 disk_super->discard_nr_blocks = cpu_to_le64(from_dblock(cmd->discard_nr_blocks)); in __write_initial_superblock()
704 disk_super->discard_nr_blocks = cpu_to_le64(from_dblock(cmd->discard_nr_blocks)); in __commit_transaction()
1104 from_dblock(cmd->discard_nr_blocks), in dm_cache_discard_bitset_resize()
1105 from_dblock(new_nr_entries), in dm_cache_discard_bitset_resize()
1121 from_dblock(b), &cmd->discard_root); in __set_discard()
1127 from_dblock(b), &cmd->discard_root); in __clear_discard()
1162 if (from_dblock(cmd->discard_nr_blocks) == 0) in __load_discards()
1172 from_dblock(cmd->discard_nr_blocks), &c); in __load_discards()
1182 if (b >= (from_dblock(cmd->discard_nr_blocks) - 1)) in __load_discards()
1193 for (b = 0; b < from_dblock(cmd->discard_nr_blocks); b++) { in __load_discards()
Ddm-cache-target.c742 BUG_ON(from_dblock(b) >= from_dblock(cache->discard_nr_blocks)); in set_discard()
746 set_bit(from_dblock(b), cache->discard_bitset); in set_discard()
753 clear_bit(from_dblock(b), cache->discard_bitset); in clear_discard()
761 r = test_bit(from_dblock(b), cache->discard_bitset); in is_discarded()
771 r = test_bit(from_dblock(oblock_to_dblock(cache, b)), in is_discarded_oblock()
1850 b = to_dblock(from_dblock(b) + 1); in process_discard_bio()
2550 cache->discard_bitset = alloc_bitset(from_dblock(cache->discard_nr_blocks)); in cache_create()
2555 clear_bitset(cache->discard_bitset, from_dblock(cache->discard_nr_blocks)); in cache_create()
2759 for (i = 0; i < from_dblock(cache->discard_nr_blocks); i++) { in write_discard_bitset()
2907 if (e > from_dblock(li->cache->discard_nr_blocks)) in set_discard_range()
[all …]