Lines Matching refs:ndevs

5094 	int ndevs;  member
5165 ctl->ndevs = 0; in init_alloc_chunk_ctl()
5188 int ndevs = 0; in gather_device_info() local
5234 if (ndevs == fs_devices->rw_devices) { in gather_device_info()
5239 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()
5243 ++ndevs; in gather_device_info()
5245 ctl->ndevs = ndevs; in gather_device_info()
5250 sort(devices_info, ndevs, sizeof(struct btrfs_device_info), in gather_device_info()
5269 ctl->stripe_size = div_u64(devices_info[ctl->ndevs - 1].max_avail, in decide_stripe_size_regular()
5271 ctl->num_stripes = ctl->ndevs * ctl->dev_stripes; in decide_stripe_size_regular()
5314 ASSERT(devices_info[ctl->ndevs - 1].max_avail == ctl->dev_extent_min); in decide_stripe_size_zoned()
5317 ctl->num_stripes = ctl->ndevs * ctl->dev_stripes; in decide_stripe_size_zoned()
5322 ctl->ndevs = div_u64(div_u64(ctl->max_chunk_size * ctl->ncopies, in decide_stripe_size_zoned()
5325 ctl->num_stripes = ctl->ndevs * ctl->dev_stripes; in decide_stripe_size_zoned()
5346 ctl->ndevs = rounddown(ctl->ndevs, ctl->devs_increment); in decide_stripe_size()
5348 if (ctl->ndevs < ctl->devs_min) { in decide_stripe_size()
5352 __func__, ctl->ndevs, ctl->devs_min); in decide_stripe_size()
5357 ctl->ndevs = min(ctl->ndevs, ctl->devs_max); in decide_stripe_size()
5389 for (i = 0; i < ctl->ndevs; ++i) { in create_chunk()