discard_block_size 79 drivers/md/dm-cache-metadata.c __le64 discard_block_size; discard_block_size 123 drivers/md/dm-cache-metadata.c sector_t discard_block_size; discard_block_size 373 drivers/md/dm-cache-metadata.c disk_super->discard_block_size = cpu_to_le64(cmd->discard_block_size); discard_block_size 419 drivers/md/dm-cache-metadata.c cmd->discard_block_size = 0; discard_block_size 586 drivers/md/dm-cache-metadata.c cmd->discard_block_size = le64_to_cpu(disk_super->discard_block_size); discard_block_size 697 drivers/md/dm-cache-metadata.c disk_super->discard_block_size = cpu_to_le64(cmd->discard_block_size); discard_block_size 1090 drivers/md/dm-cache-metadata.c sector_t discard_block_size, discard_block_size 1102 drivers/md/dm-cache-metadata.c cmd->discard_block_size = discard_block_size; discard_block_size 1171 drivers/md/dm-cache-metadata.c r = fn(context, cmd->discard_block_size, to_dblock(b), discard_block_size 1188 drivers/md/dm-cache-metadata.c r = fn(context, cmd->discard_block_size, to_dblock(b), false); discard_block_size 76 drivers/md/dm-cache-metadata.h sector_t discard_block_size, discard_block_size 79 drivers/md/dm-cache-metadata.h typedef int (*load_discard_fn)(void *context, sector_t discard_block_size, discard_block_size 438 drivers/md/dm-cache-target.c uint32_t discard_block_size; /* a power of 2 times sectors per block */ discard_block_size 741 drivers/md/dm-cache-target.c dm_block_t oblocks = cache->discard_block_size; discard_block_size 1107 drivers/md/dm-cache-target.c *b = to_dblock(dm_sector_div_up(sb, cache->discard_block_size)); discard_block_size 1109 drivers/md/dm-cache-target.c if (se - sb < cache->discard_block_size) discard_block_size 1112 drivers/md/dm-cache-target.c *e = to_dblock(block_div(se, cache->discard_block_size)); discard_block_size 2414 drivers/md/dm-cache-target.c static bool too_many_discard_blocks(sector_t discard_block_size, discard_block_size 2417 drivers/md/dm-cache-target.c (void) sector_div(origin_size, discard_block_size); discard_block_size 2425 drivers/md/dm-cache-target.c sector_t discard_block_size = cache_block_size; discard_block_size 2428 drivers/md/dm-cache-target.c while (too_many_discard_blocks(discard_block_size, origin_size)) discard_block_size 2429 drivers/md/dm-cache-target.c discard_block_size *= 2; discard_block_size 2431 drivers/md/dm-cache-target.c return discard_block_size; discard_block_size 2588 drivers/md/dm-cache-target.c cache->discard_block_size = discard_block_size 2592 drivers/md/dm-cache-target.c cache->discard_block_size)); discard_block_size 2794 drivers/md/dm-cache-target.c r = dm_cache_discard_bitset_resize(cache->cmd, cache->discard_block_size, discard_block_size 2943 drivers/md/dm-cache-target.c b = dm_sector_div_up(b, li->cache->discard_block_size); discard_block_size 2944 drivers/md/dm-cache-target.c sector_div(e, li->cache->discard_block_size); discard_block_size 2957 drivers/md/dm-cache-target.c static int load_discard(void *context, sector_t discard_block_size, discard_block_size 2962 drivers/md/dm-cache-target.c li->block_size = discard_block_size; discard_block_size 3476 drivers/md/dm-cache-target.c limits->max_discard_sectors = min_t(sector_t, cache->discard_block_size * 1024, discard_block_size 3478 drivers/md/dm-cache-target.c limits->discard_granularity = cache->discard_block_size << SECTOR_SHIFT;