Lines Matching refs:rh
70 struct dm_region_hash *rh;
342 sector_t region_size = dm_rh_get_region_size(ms->rh);
347 from.sector = m->offset + dm_rh_region_to_sector(ms->rh, key);
366 dest->sector = m->offset + dm_rh_region_to_sector(ms->rh, key);
393 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
398 dm_rh_recovery_prepare(ms->rh);
403 while ((reg = dm_rh_recovery_start(ms->rh)))
447 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
448 region_t region = dm_rh_bio_to_region(ms->rh, bio);
563 int state = dm_rh_get_state(ms->rh, region, may_block);
574 region = dm_rh_bio_to_region(ms->rh, bio);
693 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
714 region = dm_rh_bio_to_region(ms->rh, bio);
722 state = dm_rh_get_state(ms->rh, region, 1);
757 dm_rh_inc_pending(ms->rh, &sync);
758 dm_rh_inc_pending(ms->rh, &nosync);
765 ms->log_failure = dm_rh_flush(ms->rh) ? 1 : ms->log_failure;
780 dm_rh_delay(ms->rh, bio);
822 dm_rh_mark_nosync(ms->rh, bio);
876 dm_rh_update_states(ms->rh, errors_handled(ms));
923 ms->rh = dm_region_hash_create(ms, dispatch_bios, wakeup_mirrord,
927 if (IS_ERR(ms->rh)) {
944 dm_region_hash_destroy(ms->rh);
1124 r = dm_set_target_max_io_len(ti, dm_rh_get_region_size(ms->rh));
1201 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1209 bio_record->write_region = dm_rh_bio_to_region(ms->rh, bio);
1214 r = log->type->in_sync(log, dm_rh_bio_to_region(ms->rh, bio), 0);
1261 dm_rh_dec(ms->rh, bio_record->write_region);
1315 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1340 dm_rh_stop_recovery(ms->rh);
1343 !dm_rh_recovery_in_flight(ms->rh));
1361 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1371 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1377 dm_rh_start_recovery(ms->rh);
1411 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);