Searched refs:discard_block_size (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.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() 592 cmd->discard_block_size = le64_to_cpu(disk_super->discard_block_size); in read_superblock_fields() 703 disk_super->discard_block_size = cpu_to_le64(cmd->discard_block_size); in __commit_transaction() 1096 sector_t discard_block_size, in dm_cache_discard_bitset_resize() argument 1108 cmd->discard_block_size = discard_block_size; in dm_cache_discard_bitset_resize() 1177 r = fn(context, cmd->discard_block_size, to_dblock(b), in __load_discards() 1194 r = fn(context, cmd->discard_block_size, to_dblock(b), false); in __load_discards()
|
D | dm-cache-target.c | 429 uint32_t discard_block_size; /* a power of 2 times sectors per block */ member 724 dm_block_t oblocks = cache->discard_block_size; in oblocks_per_dblock() 1081 *b = to_dblock(dm_sector_div_up(sb, cache->discard_block_size)); in calc_discard_block_range() 1083 if (se - sb < cache->discard_block_size) in calc_discard_block_range() 1086 *e = to_dblock(block_div(se, cache->discard_block_size)); in calc_discard_block_range() 2388 static bool too_many_discard_blocks(sector_t discard_block_size, in too_many_discard_blocks() argument 2391 (void) sector_div(origin_size, discard_block_size); in too_many_discard_blocks() 2399 sector_t discard_block_size = cache_block_size; in calculate_discard_block_size() local 2402 while (too_many_discard_blocks(discard_block_size, origin_size)) in calculate_discard_block_size() 2403 discard_block_size *= 2; in calculate_discard_block_size() [all …]
|