Lines Matching refs:oblock
573 static bool bio_detain_shared(struct cache *cache, dm_oblock_t oblock, struct bio *bio) in bio_detain_shared() argument
578 dm_oblock_t end = to_oblock(from_oblock(oblock) + 1ULL); in bio_detain_shared()
583 build_key(oblock, end, &key); in bio_detain_shared()
664 static dm_dblock_t oblock_to_dblock(struct cache *cache, dm_oblock_t oblock) in oblock_to_dblock() argument
666 return to_dblock(block_div(from_oblock(oblock), in oblock_to_dblock()
748 dm_oblock_t oblock) in remap_to_origin_clear_discard() argument
754 clear_discard(cache, oblock_to_dblock(cache, oblock)); in remap_to_origin_clear_discard()
758 dm_oblock_t oblock, dm_cblock_t cblock) in remap_to_cache_dirty() argument
764 clear_discard(cache, oblock_to_dblock(cache, oblock)); in remap_to_cache_dirty()
820 dm_oblock_t oblock, dm_cblock_t cblock) in remap_to_origin_and_cache() argument
830 clear_discard(cache, oblock_to_dblock(cache, oblock)); in remap_to_origin_and_cache()
1088 o_region.sector = from_oblock(mg->op->oblock) * cache->sectors_per_block; in copy()
1168 clear_discard(cache, oblock_to_dblock(cache, op->oblock)); in mg_complete()
1232 r = dm_cache_insert_mapping(cache->cmd, op->cblock, op->oblock); in mg_update_metadata()
1334 is_discarded_oblock(cache, op->oblock)) { in mg_full_copy()
1353 if (!optimisable_bio(mg->cache, mg->overwrite_bio, mg->op->oblock)) { in mg_copy()
1357 bool rb = bio_detain_shared(mg->cache, mg->op->oblock, mg->overwrite_bio); in mg_copy()
1392 build_key(mg->op->oblock, oblock_succ(mg->op->oblock), &key); in mg_lock_writes()
1540 dm_oblock_t oblock, struct bio *bio) in invalidate_start() argument
1551 mg->invalidate_oblock = oblock; in invalidate_start()
2762 static int load_mapping(void *context, dm_oblock_t oblock, dm_cblock_t cblock, in load_mapping() argument
2773 return policy_load_mapping(cache->policy, oblock, cblock, dirty, hint, hint_valid); in load_mapping()