Searched refs:zinfo (Results 1 – 1 of 1) sorted by relevance
219 struct btrfs_zoned_device_info *zinfo = device->zone_info; in btrfs_get_dev_zones() local233 if (zinfo->zone_cache) { in btrfs_get_dev_zones()236 ASSERT(IS_ALIGNED(pos, zinfo->zone_size)); in btrfs_get_dev_zones()237 zno = pos >> zinfo->zone_size_shift; in btrfs_get_dev_zones()242 *nr_zones = min_t(u32, *nr_zones, zinfo->nr_zones - zno); in btrfs_get_dev_zones()247 zone_info = &zinfo->zone_cache[zno + i]; in btrfs_get_dev_zones()254 memcpy(zones, zinfo->zone_cache + zno, in btrfs_get_dev_zones()255 sizeof(*zinfo->zone_cache) * *nr_zones); in btrfs_get_dev_zones()274 if (zinfo->zone_cache) in btrfs_get_dev_zones()275 memcpy(zinfo->zone_cache + zno, zones, in btrfs_get_dev_zones()[all …]