Lines Matching refs:cache_size
776 dm_cblock_t cache_size; member
1088 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size)); in end_cache_period()
1472 unsigned nr_clean = from_cblock(mq->cache_size) - q_size(&mq->dirty); in clean_target_met()
1473 unsigned target = from_cblock(mq->cache_size) * CLEAN_TARGET_CRITICAL / 100u; in clean_target_met()
1609 static struct dm_cache_policy *smq_create(dm_cblock_t cache_size, in smq_create() argument
1622 mq->cache_size = cache_size; in smq_create()
1625 calc_hotspot_params(origin_size, cache_block_size, from_cblock(cache_size), in smq_create()
1630 if (space_init(&mq->es, total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size))) { in smq_create()
1648 total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size)); in smq_create()
1657 if (from_cblock(cache_size)) { in smq_create()
1658 mq->cache_hit_bits = alloc_bitset(from_cblock(cache_size)); in smq_create()
1663 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size)); in smq_create()
1673 from_cblock(mq->cache_size) / mq->cache_blocks_per_hotspot_block); in smq_create()
1681 if (h_init(&mq->table, &mq->es, from_cblock(cache_size))) in smq_create()