Lines Matching refs:ndevs
4936 int ndevs; in __btrfs_alloc_chunk() local
4994 ndevs = 0; in __btrfs_alloc_chunk()
5037 if (ndevs == fs_devices->rw_devices) { in __btrfs_alloc_chunk()
5042 devices_info[ndevs].dev_offset = dev_offset; in __btrfs_alloc_chunk()
5043 devices_info[ndevs].max_avail = max_avail; in __btrfs_alloc_chunk()
5044 devices_info[ndevs].total_avail = total_avail; in __btrfs_alloc_chunk()
5045 devices_info[ndevs].dev = device; in __btrfs_alloc_chunk()
5046 ++ndevs; in __btrfs_alloc_chunk()
5052 sort(devices_info, ndevs, sizeof(struct btrfs_device_info), in __btrfs_alloc_chunk()
5056 ndevs = round_down(ndevs, devs_increment); in __btrfs_alloc_chunk()
5058 if (ndevs < devs_min) { in __btrfs_alloc_chunk()
5063 __func__, ndevs, devs_min); in __btrfs_alloc_chunk()
5068 ndevs = min(ndevs, devs_max); in __btrfs_alloc_chunk()
5077 stripe_size = div_u64(devices_info[ndevs - 1].max_avail, dev_stripes); in __btrfs_alloc_chunk()
5078 num_stripes = ndevs * dev_stripes; in __btrfs_alloc_chunk()
5113 for (i = 0; i < ndevs; ++i) { in __btrfs_alloc_chunk()