Searched refs:discard_block_size (Results 1 – 3 of 3) sorted by relevance
/linux-5.19.10/drivers/md/ |
D | dm-cache-metadata.h | 76 sector_t discard_block_size, 79 typedef int (*load_discard_fn)(void *context, sector_t discard_block_size,
|
D | dm-cache-metadata.c | 79 __le64 discard_block_size; member 123 sector_t discard_block_size; member 373 disk_super->discard_block_size = cpu_to_le64(cmd->discard_block_size); in __write_initial_superblock() 419 cmd->discard_block_size = 0; in __format_metadata() 590 cmd->discard_block_size = le64_to_cpu(disk_super->discard_block_size); in read_superblock_fields() 701 disk_super->discard_block_size = cpu_to_le64(cmd->discard_block_size); in __commit_transaction() 1094 sector_t discard_block_size, in dm_cache_discard_bitset_resize() argument 1106 cmd->discard_block_size = discard_block_size; in dm_cache_discard_bitset_resize() 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()
|
D | dm-cache-target.c | 359 uint32_t discard_block_size; /* a power of 2 times sectors per block */ member 654 dm_block_t oblocks = cache->discard_block_size; in oblocks_per_dblock() 1003 *b = to_dblock(dm_sector_div_up(sb, cache->discard_block_size)); in calc_discard_block_range() 1005 if (se - 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() 2308 static bool too_many_discard_blocks(sector_t discard_block_size, in too_many_discard_blocks() argument 2311 (void) sector_div(origin_size, discard_block_size); in too_many_discard_blocks() 2319 sector_t discard_block_size = cache_block_size; in calculate_discard_block_size() local 2322 while (too_many_discard_blocks(discard_block_size, origin_size)) in calculate_discard_block_size() 2323 discard_block_size *= 2; in calculate_discard_block_size() [all …]
|