Lines Matching refs:devices_info
2213 struct btrfs_device_info *devices_info; in btrfs_calc_avail_data_space() local
2238 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()
2311 kfree(devices_info); in btrfs_calc_avail_data_space()