Searched refs:devices_info (Results 1 – 3 of 3) sorted by relevance
389 devices_info = run_json_cmd("devlink -j dev info")["info"]390 for d in devices_info:391 if "mlxsw_spectrum" in devices_info[d]["driver"]:
2213 struct btrfs_device_info *devices_info; in btrfs_calc_avail_data_space() local2238 devices_info = kmalloc_array(nr_devices, sizeof(*devices_info), in btrfs_calc_avail_data_space()2240 if (!devices_info) in btrfs_calc_avail_data_space()2282 devices_info[i].dev = device; in btrfs_calc_avail_data_space()2283 devices_info[i].max_avail = avail_space; in btrfs_calc_avail_data_space()2291 btrfs_descending_sort_devices(devices_info, nr_devices); in btrfs_calc_avail_data_space()2298 if (devices_info[i].max_avail >= min_stripe_size) { in btrfs_calc_avail_data_space()2302 avail_space += devices_info[i].max_avail * num_stripes; in btrfs_calc_avail_data_space()2303 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space()2305 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()[all …]
5181 struct btrfs_device_info *devices_info) in gather_device_info() argument5239 devices_info[ndevs].dev_offset = dev_offset; in gather_device_info()5240 devices_info[ndevs].max_avail = max_avail; in gather_device_info()5241 devices_info[ndevs].total_avail = total_avail; in gather_device_info()5242 devices_info[ndevs].dev = device; in gather_device_info()5250 sort(devices_info, ndevs, sizeof(struct btrfs_device_info), in gather_device_info()5257 struct btrfs_device_info *devices_info) in decide_stripe_size_regular() argument5269 ctl->stripe_size = div_u64(devices_info[ctl->ndevs - 1].max_avail, in decide_stripe_size_regular()5304 struct btrfs_device_info *devices_info) in decide_stripe_size_zoned() argument5306 u64 zone_size = devices_info[0].dev->zone_info->zone_size; in decide_stripe_size_zoned()[all …]