Lines Matching refs:cache_size
799 dm_cblock_t cache_size;
1113 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size));
1133 return from_cblock(mq->cache_size) * p / 100u;
1159 nr_free = from_cblock(mq->cache_size) - mq->cache_alloc.nr_allocated;
1726 __smq_create(dm_cblock_t cache_size, sector_t origin_size, sector_t cache_block_size,
1738 mq->cache_size = cache_size;
1741 calc_hotspot_params(origin_size, cache_block_size, from_cblock(cache_size),
1746 if (space_init(&mq->es, total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size))) {
1764 total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size));
1773 if (from_cblock(cache_size)) {
1774 mq->cache_hit_bits = alloc_bitset(from_cblock(cache_size));
1779 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size));
1789 from_cblock(mq->cache_size) / mq->cache_blocks_per_hotspot_block);
1797 if (h_init(&mq->table, &mq->es, from_cblock(cache_size)))
1834 static struct dm_cache_policy *smq_create(dm_cblock_t cache_size,
1838 return __smq_create(cache_size, origin_size, cache_block_size,
1842 static struct dm_cache_policy *mq_create(dm_cblock_t cache_size,
1846 return __smq_create(cache_size, origin_size, cache_block_size,
1850 static struct dm_cache_policy *cleaner_create(dm_cblock_t cache_size,
1854 return __smq_create(cache_size, origin_size, cache_block_size,