Lines Matching refs:region_nr
635 bool dm_clone_is_region_hydrated(struct dm_clone_metadata *cmd, unsigned long region_nr) in dm_clone_is_region_hydrated() argument
637 return dm_clone_is_hydration_done(cmd) || test_bit(region_nr, cmd->region_map); in dm_clone_is_region_hydrated()
841 int dm_clone_set_region_hydrated(struct dm_clone_metadata *cmd, unsigned long region_nr) in dm_clone_set_region_hydrated() argument
847 if (unlikely(region_nr >= cmd->nr_regions)) { in dm_clone_set_region_hydrated()
849 region_nr, cmd->nr_regions); in dm_clone_set_region_hydrated()
853 word = region_nr / BITS_PER_LONG; in dm_clone_set_region_hydrated()
865 __set_bit(region_nr, dmap->dirty_regions); in dm_clone_set_region_hydrated()
866 __set_bit(region_nr, cmd->region_map); in dm_clone_set_region_hydrated()
880 unsigned long word, region_nr; in dm_clone_cond_set_range() local
897 for (region_nr = start; region_nr < (start + nr_regions); region_nr++) { in dm_clone_cond_set_range()
898 if (!test_bit(region_nr, cmd->region_map)) { in dm_clone_cond_set_range()
899 word = region_nr / BITS_PER_LONG; in dm_clone_cond_set_range()
901 __set_bit(region_nr, dmap->dirty_regions); in dm_clone_cond_set_range()
902 __set_bit(region_nr, cmd->region_map); in dm_clone_cond_set_range()