Lines Matching refs:region_nr
276 static inline sector_t region_to_sector(struct clone *clone, unsigned long region_nr) in region_to_sector() argument
278 return ((sector_t)region_nr << clone->region_shift); in region_to_sector()
531 unsigned long region_nr; member
603 unsigned long region_nr) in get_hash_table_bucket() argument
605 return &clone->ht[hash_long(region_nr, HASH_TABLE_BITS)]; in get_hash_table_bucket()
614 unsigned long region_nr) in __hash_find() argument
619 if (hd->region_nr == region_nr) in __hash_find()
650 hd2 = __hash_find(bucket, hd->region_nr); in __find_or_insert_region_hydration()
682 static void hydration_init(struct dm_clone_region_hydration *hd, unsigned long region_nr) in hydration_init() argument
684 hd->region_nr = region_nr; in hydration_init()
711 r = dm_clone_set_region_hydrated(clone->cmd, hd->region_nr); in hydration_update_metadata()
713 bucket = get_hash_table_bucket(clone, hd->region_nr); in hydration_update_metadata()
804 region_start = hd->region_nr; in hydration_copy()
876 unsigned long region_nr; in hydrate_bio_region() local
880 region_nr = bio_to_region(clone, bio); in hydrate_bio_region()
881 bucket = get_hash_table_bucket(clone, region_nr); in hydrate_bio_region()
885 hd = __hash_find(bucket, region_nr); in hydrate_bio_region()
893 if (dm_clone_is_region_hydrated(clone->cmd, region_nr)) { in hydrate_bio_region()
907 hydration_init(hd, region_nr); in hydrate_bio_region()
912 if (dm_clone_is_region_hydrated(clone->cmd, region_nr)) { in hydrate_bio_region()
987 (batch->head->region_nr + batch->nr_batched_regions) == hd->region_nr) { in __batch_hydration()
1321 unsigned long region_nr; in clone_map() local
1362 region_nr = bio_to_region(clone, bio); in clone_map()
1363 if (dm_clone_is_region_hydrated(clone->cmd, region_nr)) { in clone_map()