Home
last modified time | relevance | path

Searched refs:empty_zones (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/fs/btrfs/
Dzoned.h27 unsigned long *empty_zones; member
299 return test_bit(pos >> zone_info->zone_size_shift, zone_info->empty_zones); in btrfs_dev_is_empty_zone()
313 set_bit(zno, zone_info->empty_zones); in btrfs_dev_set_empty_zone_bit()
315 clear_bit(zno, zone_info->empty_zones); in btrfs_dev_set_empty_zone_bit()
Dzoned.c458 zone_info->empty_zones = bitmap_zalloc(zone_info->nr_zones, GFP_KERNEL); in btrfs_get_dev_zone_info()
459 if (!zone_info->empty_zones) { in btrfs_get_dev_zone_info()
507 __set_bit(nreported, zone_info->empty_zones); in btrfs_get_dev_zone_info()
639 bitmap_free(zone_info->empty_zones); in btrfs_destroy_dev_zone_info()
660 zone_info->empty_zones = bitmap_zalloc(zone_info->nr_zones, GFP_KERNEL); in btrfs_clone_dev_zone_info()
661 if (!zone_info->empty_zones) in btrfs_clone_dev_zone_info()
664 bitmap_copy(zone_info->empty_zones, orig_dev->zone_info->empty_zones, in btrfs_clone_dev_zone_info()
679 bitmap_free(zone_info->empty_zones); in btrfs_clone_dev_zone_info()
1057 find_next_zero_bit(zinfo->empty_zones, end, begin) != end) { in btrfs_find_allocatable_zones()
1172 find_next_zero_bit(zinfo->empty_zones, begin, end) == end) in btrfs_ensure_empty_zones()