Lines Matching refs:region_map
137 unsigned long *region_map; member
539 __set_bit(i, cmd->region_map); in __load_bitset_in_core()
541 __clear_bit(i, cmd->region_map); in __load_bitset_in_core()
582 cmd->region_map = kvmalloc(bitmap_size(cmd->nr_regions), GFP_KERNEL); in dm_clone_metadata_open()
583 if (!cmd->region_map) { in dm_clone_metadata_open()
603 if (bitmap_full(cmd->region_map, cmd->nr_regions)) in dm_clone_metadata_open()
612 kvfree(cmd->region_map); in dm_clone_metadata_open()
626 kvfree(cmd->region_map); in dm_clone_metadata_close()
637 return dm_clone_is_hydration_done(cmd) || test_bit(region_nr, cmd->region_map); in dm_clone_is_region_hydrated()
648 bit = find_next_zero_bit(cmd->region_map, cmd->nr_regions, start); in dm_clone_is_range_hydrated()
655 return bitmap_weight(cmd->region_map, cmd->nr_regions); in dm_clone_nr_of_hydrated_regions()
661 return find_next_zero_bit(cmd->region_map, cmd->nr_regions, start); in dm_clone_find_next_unhydrated_region()
736 if (bitmap_full(cmd->region_map, cmd->nr_regions)) in __metadata_commit()
866 __set_bit(region_nr, cmd->region_map); in dm_clone_set_region_hydrated()
898 if (!test_bit(region_nr, cmd->region_map)) { in dm_clone_cond_set_range()
902 __set_bit(region_nr, cmd->region_map); in dm_clone_cond_set_range()