Lines Matching refs:nr_devices
1892 size_t nr_devices) in btrfs_descending_sort_devices() argument
1894 sort(devices, nr_devices, sizeof(struct btrfs_device_info), in btrfs_descending_sort_devices()
1912 int i = 0, nr_devices; in btrfs_calc_avail_data_space() local
1919 nr_devices = fs_info->fs_devices->open_devices; in btrfs_calc_avail_data_space()
1920 if (!nr_devices) { in btrfs_calc_avail_data_space()
1922 nr_devices = fs_info->fs_devices->open_devices; in btrfs_calc_avail_data_space()
1923 ASSERT(nr_devices); in btrfs_calc_avail_data_space()
1924 if (!nr_devices) { in btrfs_calc_avail_data_space()
1930 devices_info = kmalloc_array(nr_devices, sizeof(*devices_info), in btrfs_calc_avail_data_space()
1940 num_stripes = nr_devices; in btrfs_calc_avail_data_space()
1957 if (i >= nr_devices) in btrfs_calc_avail_data_space()
1981 nr_devices = i; in btrfs_calc_avail_data_space()
1983 btrfs_descending_sort_devices(devices_info, nr_devices); in btrfs_calc_avail_data_space()
1985 i = nr_devices - 1; in btrfs_calc_avail_data_space()
1987 while (nr_devices >= rattr->devs_min) { in btrfs_calc_avail_data_space()
1988 num_stripes = min(num_stripes, nr_devices); in btrfs_calc_avail_data_space()
2000 nr_devices--; in btrfs_calc_avail_data_space()