Lines Matching refs:ndevs
4640 int ndevs; in __btrfs_alloc_chunk() local
4700 ndevs = 0; in __btrfs_alloc_chunk()
4743 if (ndevs == fs_devices->rw_devices) { in __btrfs_alloc_chunk()
4748 devices_info[ndevs].dev_offset = dev_offset; in __btrfs_alloc_chunk()
4749 devices_info[ndevs].max_avail = max_avail; in __btrfs_alloc_chunk()
4750 devices_info[ndevs].total_avail = total_avail; in __btrfs_alloc_chunk()
4751 devices_info[ndevs].dev = device; in __btrfs_alloc_chunk()
4752 ++ndevs; in __btrfs_alloc_chunk()
4758 sort(devices_info, ndevs, sizeof(struct btrfs_device_info), in __btrfs_alloc_chunk()
4762 ndevs = round_down(ndevs, devs_increment); in __btrfs_alloc_chunk()
4764 if (ndevs < devs_min) { in __btrfs_alloc_chunk()
4769 __func__, ndevs, devs_min); in __btrfs_alloc_chunk()
4774 ndevs = min(ndevs, devs_max); in __btrfs_alloc_chunk()
4783 stripe_size = div_u64(devices_info[ndevs - 1].max_avail, dev_stripes); in __btrfs_alloc_chunk()
4784 num_stripes = ndevs * dev_stripes; in __btrfs_alloc_chunk()
4825 for (i = 0; i < ndevs; ++i) { in __btrfs_alloc_chunk()