Searched refs:empty_zones (Results 1 – 2 of 2) sorted by relevance
/fs/btrfs/ |
D | zoned.h | 32 unsigned long *empty_zones; member 282 return test_bit(pos >> zone_info->zone_size_shift, zone_info->empty_zones); in btrfs_dev_is_empty_zone() 296 set_bit(zno, zone_info->empty_zones); in btrfs_dev_set_empty_zone_bit() 298 clear_bit(zno, zone_info->empty_zones); in btrfs_dev_set_empty_zone_bit()
|
D | zoned.c | 447 zone_info->empty_zones = bitmap_zalloc(zone_info->nr_zones, GFP_KERNEL); in btrfs_get_dev_zone_info() 448 if (!zone_info->empty_zones) { in btrfs_get_dev_zone_info() 496 __set_bit(nreported, zone_info->empty_zones); in btrfs_get_dev_zone_info() 627 bitmap_free(zone_info->empty_zones); in btrfs_destroy_dev_zone_info() 648 zone_info->empty_zones = bitmap_zalloc(zone_info->nr_zones, GFP_KERNEL); in btrfs_clone_dev_zone_info() 649 if (!zone_info->empty_zones) in btrfs_clone_dev_zone_info() 652 bitmap_copy(zone_info->empty_zones, orig_dev->zone_info->empty_zones, in btrfs_clone_dev_zone_info() 667 bitmap_free(zone_info->empty_zones); in btrfs_clone_dev_zone_info() 1067 !bitmap_test_range_all_set(zinfo->empty_zones, begin, nzones)) { in btrfs_find_allocatable_zones() 1182 bitmap_test_range_all_set(zinfo->empty_zones, begin, nbits)) in btrfs_ensure_empty_zones()
|