Lines Matching refs:rh

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