Lines Matching refs:zone_sectors
195 const sector_t zone_sectors = device->fs_info->zone_size >> SECTOR_SHIFT; in emulate_report_zones() local
201 zones[i].start = i * zone_sectors + pos; in emulate_report_zones()
202 zones[i].len = zone_sectors; in emulate_report_zones()
203 zones[i].capacity = zone_sectors; in emulate_report_zones()
204 zones[i].wp = zones[i].start + zone_sectors; in emulate_report_zones()
362 sector_t zone_sectors; in btrfs_get_dev_zone_info() local
390 zone_sectors = fs_info->zone_size >> SECTOR_SHIFT; in btrfs_get_dev_zone_info()
392 zone_sectors = bdev_zone_sectors(bdev); in btrfs_get_dev_zone_info()
396 ASSERT(zone_sectors != 0 && (zone_sectors & (zone_sectors - 1)) == 0); in btrfs_get_dev_zone_info()
397 zone_info->zone_size = zone_sectors << SECTOR_SHIFT; in btrfs_get_dev_zone_info()
418 zone_info->nr_zones = nr_sectors >> ilog2(zone_sectors); in btrfs_get_dev_zone_info()
438 if (!IS_ALIGNED(nr_sectors, zone_sectors)) in btrfs_get_dev_zone_info()
869 sector_t zone_sectors; in btrfs_sb_log_location_bdev() local
883 zone_sectors = bdev_zone_sectors(bdev); in btrfs_sb_log_location_bdev()
884 if (!is_power_of_2(zone_sectors)) in btrfs_sb_log_location_bdev()
886 zone_sectors_shift = ilog2(zone_sectors); in btrfs_sb_log_location_bdev()
1003 sector_t zone_sectors; in btrfs_reset_sb_log_zones() local
1009 zone_sectors = bdev_zone_sectors(bdev); in btrfs_reset_sb_log_zones()
1010 zone_sectors_shift = ilog2(zone_sectors); in btrfs_reset_sb_log_zones()
1020 zone_sectors * BTRFS_NR_SB_LOG_ZONES, GFP_NOFS); in btrfs_reset_sb_log_zones()