|
@@ -605,6 +605,7 @@ static void remap_to_origin_clear_discard(struct cache *cache, struct bio *bio,
|
|
|
static void remap_to_cache_dirty(struct cache *cache, struct bio *bio,
|
|
|
dm_oblock_t oblock, dm_cblock_t cblock)
|
|
|
{
|
|
|
+ check_if_tick_bio_needed(cache, bio);
|
|
|
remap_to_cache(cache, bio, cblock);
|
|
|
if (bio_data_dir(bio) == WRITE) {
|
|
|
set_dirty(cache, oblock, cblock);
|