Lines Matching refs:rh
65 struct dm_region_hash *rh;
336 sector_t region_size = dm_rh_get_region_size(ms->rh);
341 from.sector = m->offset + dm_rh_region_to_sector(ms->rh, key);
360 dest->sector = m->offset + dm_rh_region_to_sector(ms->rh, key);
387 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
392 dm_rh_recovery_prepare(ms->rh);
397 while ((reg = dm_rh_recovery_start(ms->rh)))
439 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
440 region_t region = dm_rh_bio_to_region(ms->rh, bio);
555 int state = dm_rh_get_state(ms->rh, region, may_block);
566 region = dm_rh_bio_to_region(ms->rh, bio);
685 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
706 region = dm_rh_bio_to_region(ms->rh, bio);
714 state = dm_rh_get_state(ms->rh, region, 1);
749 dm_rh_inc_pending(ms->rh, &sync);
750 dm_rh_inc_pending(ms->rh, &nosync);
757 ms->log_failure = dm_rh_flush(ms->rh) ? 1 : ms->log_failure;
772 dm_rh_delay(ms->rh, bio);
814 dm_rh_mark_nosync(ms->rh, bio);
866 dm_rh_update_states(ms->rh, errors_handled(ms));
911 ms->rh = dm_region_hash_create(ms, dispatch_bios, wakeup_mirrord,
915 if (IS_ERR(ms->rh)) {
932 dm_region_hash_destroy(ms->rh);
1112 r = dm_set_target_max_io_len(ti, dm_rh_get_region_size(ms->rh));
1189 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1197 bio_record->write_region = dm_rh_bio_to_region(ms->rh, bio);
1202 r = log->type->in_sync(log, dm_rh_bio_to_region(ms->rh, bio), 0);
1249 dm_rh_dec(ms->rh, bio_record->write_region);
1303 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1328 dm_rh_stop_recovery(ms->rh);
1331 !dm_rh_recovery_in_flight(ms->rh));
1349 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1359 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1365 dm_rh_start_recovery(ms->rh);
1399 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);