Lines Matching refs:rh

61 	struct dm_region_hash *rh;
334 sector_t region_size = dm_rh_get_region_size(ms->rh);
339 from.sector = m->offset + dm_rh_region_to_sector(ms->rh, key);
358 dest->sector = m->offset + dm_rh_region_to_sector(ms->rh, key);
376 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
382 dm_rh_recovery_prepare(ms->rh);
387 while ((reg = dm_rh_recovery_start(ms->rh))) {
431 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
432 region_t region = dm_rh_bio_to_region(ms->rh, bio);
544 int state = dm_rh_get_state(ms->rh, region, may_block);
555 region = dm_rh_bio_to_region(ms->rh, bio);
663 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
684 region = dm_rh_bio_to_region(ms->rh, bio);
692 state = dm_rh_get_state(ms->rh, region, 1);
727 dm_rh_inc_pending(ms->rh, &sync);
728 dm_rh_inc_pending(ms->rh, &nosync);
735 ms->log_failure = dm_rh_flush(ms->rh) ? 1 : ms->log_failure;
750 dm_rh_delay(ms->rh, bio);
792 dm_rh_mark_nosync(ms->rh, bio);
839 dm_rh_update_states(ms->rh, errors_handled(ms));
887 ms->rh = dm_region_hash_create(ms, dispatch_bios, wakeup_mirrord,
891 if (IS_ERR(ms->rh)) {
908 dm_region_hash_destroy(ms->rh);
1074 r = dm_set_target_max_io_len(ti, dm_rh_get_region_size(ms->rh));
1152 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1160 bio_record->write_region = dm_rh_bio_to_region(ms->rh, bio);
1165 r = log->type->in_sync(log, dm_rh_bio_to_region(ms->rh, bio), 0);
1210 dm_rh_dec(ms->rh, bio_record->write_region);
1265 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1290 dm_rh_stop_recovery(ms->rh);
1293 !dm_rh_recovery_in_flight(ms->rh));
1311 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1321 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);
1327 dm_rh_start_recovery(ms->rh);
1360 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh);