Lines Matching refs:sb_zone
536 u32 sb_zone; in btrfs_get_dev_zone_info() local
540 sb_zone = sb_zone_number(zone_info->zone_size_shift, i); in btrfs_get_dev_zone_info()
541 if (sb_zone + 1 >= zone_info->nr_zones) in btrfs_get_dev_zone_info()
545 zone_start_physical(sb_zone, zone_info), in btrfs_get_dev_zone_info()
554 device->devid, sb_zone); in btrfs_get_dev_zone_info()
572 device->devid, sb_zone); in btrfs_get_dev_zone_info()
880 u32 sb_zone; in btrfs_sb_log_location_bdev() local
900 sb_zone = sb_zone_number(zone_sectors_shift + SECTOR_SHIFT, mirror); in btrfs_sb_log_location_bdev()
901 if (sb_zone + 1 >= nr_zones) in btrfs_sb_log_location_bdev()
904 ret = blkdev_report_zones(bdev, zone_start_sector(sb_zone, bdev), in btrfs_sb_log_location_bdev()
1016 u32 sb_zone; in btrfs_reset_sb_log_zones() local
1024 sb_zone = sb_zone_number(zone_sectors_shift + SECTOR_SHIFT, mirror); in btrfs_reset_sb_log_zones()
1025 if (sb_zone + 1 >= nr_zones) in btrfs_reset_sb_log_zones()
1029 zone_start_sector(sb_zone, bdev), in btrfs_reset_sb_log_zones()
1074 u32 sb_zone; in btrfs_find_allocatable_zones() local
1077 sb_zone = sb_zone_number(shift, i); in btrfs_find_allocatable_zones()
1078 if (!(end <= sb_zone || in btrfs_find_allocatable_zones()
1079 sb_zone + BTRFS_NR_SB_LOG_ZONES <= begin)) { in btrfs_find_allocatable_zones()
1082 sb_zone + BTRFS_NR_SB_LOG_ZONES, zinfo); in btrfs_find_allocatable_zones()