Lines Matching refs:devices_info
1975 struct btrfs_device_info *devices_info; in btrfs_calc_avail_data_space() local
2000 devices_info = kmalloc_array(nr_devices, sizeof(*devices_info), in btrfs_calc_avail_data_space()
2002 if (!devices_info) in btrfs_calc_avail_data_space()
2059 devices_info[i].dev = device; in btrfs_calc_avail_data_space()
2060 devices_info[i].max_avail = avail_space; in btrfs_calc_avail_data_space()
2068 btrfs_descending_sort_devices(devices_info, nr_devices); in btrfs_calc_avail_data_space()
2076 if (devices_info[i].max_avail >= min_stripe_size) { in btrfs_calc_avail_data_space()
2080 avail_space += devices_info[i].max_avail * num_stripes; in btrfs_calc_avail_data_space()
2081 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space()
2083 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()
2089 kfree(devices_info); in btrfs_calc_avail_data_space()