Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/md/
Ddm-cache-metadata.h76 sector_t discard_block_size,
79 typedef int (*load_discard_fn)(void *context, sector_t discard_block_size,
Ddm-cache-metadata.c79 __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()
586 cmd->discard_block_size = le64_to_cpu(disk_super->discard_block_size); in read_superblock_fields()
697 disk_super->discard_block_size = cpu_to_le64(cmd->discard_block_size); in __commit_transaction()
1090 sector_t discard_block_size, in dm_cache_discard_bitset_resize() argument
1102 cmd->discard_block_size = discard_block_size; in dm_cache_discard_bitset_resize()
1171 r = fn(context, cmd->discard_block_size, to_dblock(b), in __load_discards()
1188 r = fn(context, cmd->discard_block_size, to_dblock(b), false); in __load_discards()
Ddm-cache-target.c438 uint32_t discard_block_size; /* a power of 2 times sectors per block */ member
741 dm_block_t oblocks = cache->discard_block_size; in oblocks_per_dblock()
1107 *b = to_dblock(dm_sector_div_up(sb, cache->discard_block_size)); in calc_discard_block_range()
1109 if (se - sb < cache->discard_block_size) in calc_discard_block_range()
1112 *e = to_dblock(block_div(se, cache->discard_block_size)); in calc_discard_block_range()
2414 static bool too_many_discard_blocks(sector_t discard_block_size, in too_many_discard_blocks() argument
2417 (void) sector_div(origin_size, discard_block_size); in too_many_discard_blocks()
2425 sector_t discard_block_size = cache_block_size; in calculate_discard_block_size() local
2428 while (too_many_discard_blocks(discard_block_size, origin_size)) in calculate_discard_block_size()
2429 discard_block_size *= 2; in calculate_discard_block_size()
[all …]