Searched refs:to_dblock (Results 1 – 3 of 3) sorted by relevance
/linux-5.19.10/drivers/md/ |
D | dm-cache-block-types.h | 44 static inline dm_dblock_t to_dblock(dm_block_t b) in to_dblock() function
|
D | dm-cache-target.c | 666 return to_dblock(block_div(from_oblock(oblock), in oblock_to_dblock() 1003 *b = to_dblock(dm_sector_div_up(sb, cache->discard_block_size)); in calc_discard_block_range() 1008 *e = to_dblock(block_div(se, cache->discard_block_size)); in calc_discard_block_range() 1772 b = to_dblock(from_dblock(b) + 1); in process_discard_bio() 2469 cache->discard_nr_blocks = to_dblock(dm_sector_div_up(cache->origin_sectors, in cache_create() 2681 r = dm_cache_set_discard(cache->cmd, to_dblock(i), in write_discard_bitset() 2682 is_discarded(cache, to_dblock(i))); in write_discard_bitset() 2827 set_discard(li->cache, to_dblock(b)); in set_discard_range()
|
D | dm-cache-metadata.c | 591 cmd->discard_nr_blocks = to_dblock(le64_to_cpu(disk_super->discard_nr_blocks)); in read_superblock_fields() 1175 r = fn(context, cmd->discard_block_size, to_dblock(b), in __load_discards() 1192 r = fn(context, cmd->discard_block_size, to_dblock(b), false); in __load_discards()
|