Lines Matching refs:cblock

1198 		work.cblock = infer_cblock(mq, e);  in queue_writeback()
1229 work.cblock = infer_cblock(mq, e); in queue_demotion()
1269 work.cblock = infer_cblock(mq, e); in queue_promotion()
1376 static int __lookup(struct smq_policy *mq, dm_oblock_t oblock, dm_cblock_t *cblock, in __lookup() argument
1390 *cblock = infer_cblock(mq, e); in __lookup()
1411 static int smq_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in smq_lookup() argument
1420 r = __lookup(mq, oblock, cblock, in smq_lookup()
1429 dm_oblock_t oblock, dm_cblock_t *cblock, in smq_lookup_with_work() argument
1439 r = __lookup(mq, oblock, cblock, data_dir, fast_copy, work, &background_queued); in smq_lookup_with_work()
1474 from_cblock(work->cblock)); in __complete_background_work()
1528 static void __smq_set_clear_dirty(struct smq_policy *mq, dm_cblock_t cblock, bool set) in __smq_set_clear_dirty() argument
1530 struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); in __smq_set_clear_dirty()
1541 static void smq_set_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_set_dirty() argument
1547 __smq_set_clear_dirty(mq, cblock, true); in smq_set_dirty()
1551 static void smq_clear_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_clear_dirty() argument
1557 __smq_set_clear_dirty(mq, cblock, false); in smq_clear_dirty()
1561 static unsigned int random_level(dm_cblock_t cblock) in random_level() argument
1563 return hash_32(from_cblock(cblock), 9) & (NR_CACHE_LEVELS - 1); in random_level()
1567 dm_oblock_t oblock, dm_cblock_t cblock, in smq_load_mapping() argument
1573 e = alloc_particular_entry(&mq->cache_alloc, from_cblock(cblock)); in smq_load_mapping()
1576 e->level = hint_valid ? min(hint, NR_CACHE_LEVELS - 1) : random_level(cblock); in smq_load_mapping()
1588 static int smq_invalidate_mapping(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_invalidate_mapping() argument
1591 struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); in smq_invalidate_mapping()
1603 static uint32_t smq_get_hint(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_get_hint() argument
1606 struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); in smq_get_hint()