Lines Matching refs:devices_info
4624 struct btrfs_device_info *devices_info = NULL; in __btrfs_alloc_chunk() local
4691 devices_info = kcalloc(fs_devices->rw_devices, sizeof(*devices_info), in __btrfs_alloc_chunk()
4693 if (!devices_info) 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()
4758 sort(devices_info, ndevs, sizeof(struct btrfs_device_info), in __btrfs_alloc_chunk()
4783 stripe_size = div_u64(devices_info[ndevs - 1].max_avail, dev_stripes); in __btrfs_alloc_chunk()
4828 map->stripes[s].dev = devices_info[i].dev; in __btrfs_alloc_chunk()
4829 map->stripes[s].physical = devices_info[i].dev_offset + in __btrfs_alloc_chunk()
4885 kfree(devices_info); in __btrfs_alloc_chunk()
4900 kfree(devices_info); in __btrfs_alloc_chunk()