Lines Matching refs:dm_region_hash
57 struct dm_region_hash {
102 struct dm_region_hash *rh;
116 static region_t dm_rh_sector_to_region(struct dm_region_hash *rh, sector_t sector)
121 sector_t dm_rh_region_to_sector(struct dm_region_hash *rh, region_t region)
127 region_t dm_rh_bio_to_region(struct dm_region_hash *rh, struct bio *bio)
145 sector_t dm_rh_get_region_size(struct dm_region_hash *rh)
155 struct dm_region_hash *dm_region_hash_create(
164 struct dm_region_hash *rh;
230 void dm_region_hash_destroy(struct dm_region_hash *rh)
255 struct dm_dirty_log *dm_rh_dirty_log(struct dm_region_hash *rh)
261 static unsigned rh_hash(struct dm_region_hash *rh, region_t region)
266 static struct dm_region *__rh_lookup(struct dm_region_hash *rh, region_t region)
278 static void __rh_insert(struct dm_region_hash *rh, struct dm_region *reg)
283 static struct dm_region *__rh_alloc(struct dm_region_hash *rh, region_t region)
319 static struct dm_region *__rh_find(struct dm_region_hash *rh, region_t region)
333 int dm_rh_get_state(struct dm_region_hash *rh, region_t region, int may_block)
361 struct dm_region_hash *rh = reg->rh;
390 void dm_rh_mark_nosync(struct dm_region_hash *rh, struct bio *bio)
432 void dm_rh_update_states(struct dm_region_hash *rh, int errors_handled)
495 static void rh_inc(struct dm_region_hash *rh, region_t region)
518 void dm_rh_inc_pending(struct dm_region_hash *rh, struct bio_list *bios)
530 void dm_rh_dec(struct dm_region_hash *rh, region_t region)
579 static int __rh_recovery_prepare(struct dm_region_hash *rh)
614 void dm_rh_recovery_prepare(struct dm_region_hash *rh)
637 struct dm_region *dm_rh_recovery_start(struct dm_region_hash *rh)
655 struct dm_region_hash *rh = reg->rh;
670 int dm_rh_recovery_in_flight(struct dm_region_hash *rh)
676 int dm_rh_flush(struct dm_region_hash *rh)
682 void dm_rh_delay(struct dm_region_hash *rh, struct bio *bio)
693 void dm_rh_stop_recovery(struct dm_region_hash *rh)
703 void dm_rh_start_recovery(struct dm_region_hash *rh)