Lines Matching refs:btrfs_raid_array
54 const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = { variable
195 return btrfs_raid_array[index].raid_name; in btrfs_bg_type_to_raid_name()
202 return btrfs_raid_array[index].nparity; in btrfs_nr_parity_stripes()
240 DESCRIBE_FLAG(btrfs_raid_array[i].bg_flag, in btrfs_describe_block_groups()
241 btrfs_raid_array[i].raid_name); in btrfs_describe_block_groups()
2148 if (!(all_avail & btrfs_raid_array[i].bg_flag)) in btrfs_check_raid_min_devices()
2151 if (num_devices < btrfs_raid_array[i].devs_min) in btrfs_check_raid_min_devices()
2152 return btrfs_raid_array[i].mindev_error; in btrfs_check_raid_min_devices()
3970 const int ncopies = btrfs_raid_array[index].ncopies; in calc_data_stripes()
3971 const int nparity = btrfs_raid_array[index].nparity; in calc_data_stripes()
4586 for (i = 0; i < ARRAY_SIZE(btrfs_raid_array); i++) in btrfs_balance()
4587 if (num_devices >= btrfs_raid_array[i].devs_min) in btrfs_balance()
4588 allowed |= btrfs_raid_array[i].bg_flag; in btrfs_balance()
4602 for (i = 0; i < ARRAY_SIZE(btrfs_raid_array); i++) { in btrfs_balance()
4603 if (btrfs_raid_array[i].ncopies >= 2 || in btrfs_balance()
4604 btrfs_raid_array[i].tolerated_failures >= 1) in btrfs_balance()
4605 allowed |= btrfs_raid_array[i].bg_flag; in btrfs_balance()
5280 ctl->sub_stripes = btrfs_raid_array[index].sub_stripes; in init_alloc_chunk_ctl()
5281 ctl->dev_stripes = btrfs_raid_array[index].dev_stripes; in init_alloc_chunk_ctl()
5282 ctl->devs_max = btrfs_raid_array[index].devs_max; in init_alloc_chunk_ctl()
5285 ctl->devs_min = btrfs_raid_array[index].devs_min; in init_alloc_chunk_ctl()
5286 ctl->devs_increment = btrfs_raid_array[index].devs_increment; in init_alloc_chunk_ctl()
5287 ctl->ncopies = btrfs_raid_array[index].ncopies; in init_alloc_chunk_ctl()
5288 ctl->nparity = btrfs_raid_array[index].nparity; in init_alloc_chunk_ctl()
5860 return btrfs_raid_array[index].tolerated_failures; in btrfs_chunk_max_errors()
5935 return btrfs_raid_array[index].ncopies; in btrfs_chunk_map_num_copies()
7126 map->sub_stripes = btrfs_raid_array[index].sub_stripes; in read_one_chunk()
7955 return btrfs_raid_array[index].ncopies; in btrfs_bg_type_to_factor()