Lines Matching refs:max_avail
2025 /* Used to sort the devices by max_avail(descending sort) */
2029 if (((struct btrfs_device_info *)dev_info1)->max_avail >
2030 ((struct btrfs_device_info *)dev_info2)->max_avail)
2032 else if (((struct btrfs_device_info *)dev_info1)->max_avail <
2033 ((struct btrfs_device_info *)dev_info2)->max_avail)
2040 * sort the devices by max_avail, in which max free extent size of each device
2136 devices_info[i].max_avail = avail_space;
2151 if (devices_info[i].max_avail >= min_stripe_size) {
2155 avail_space += devices_info[i].max_avail * num_stripes;
2156 alloc_size = devices_info[i].max_avail;
2158 devices_info[j].max_avail -= alloc_size;