Lines Matching refs:btrfs_raid_array
36 const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = { variable
163 return btrfs_raid_array[index].raid_name; in btrfs_bg_type_to_raid_name()
201 DESCRIBE_FLAG(btrfs_raid_array[i].bg_flag, in btrfs_describe_block_groups()
202 btrfs_raid_array[i].raid_name); in btrfs_describe_block_groups()
1986 if (!(all_avail & btrfs_raid_array[i].bg_flag)) in btrfs_check_raid_min_devices()
1989 if (num_devices < btrfs_raid_array[i].devs_min) { in btrfs_check_raid_min_devices()
1990 int ret = btrfs_raid_array[i].mindev_error; in btrfs_check_raid_min_devices()
3480 const int ncopies = btrfs_raid_array[index].ncopies; in calc_data_stripes()
3481 const int nparity = btrfs_raid_array[index].nparity; in calc_data_stripes()
4105 for (i = 0; i < ARRAY_SIZE(btrfs_raid_array); i++) in btrfs_balance()
4106 if (num_devices >= btrfs_raid_array[i].devs_min) in btrfs_balance()
4107 allowed |= btrfs_raid_array[i].bg_flag; in btrfs_balance()
4121 for (i = 0; i < ARRAY_SIZE(btrfs_raid_array); i++) { in btrfs_balance()
4122 if (btrfs_raid_array[i].ncopies >= 2 || in btrfs_balance()
4123 btrfs_raid_array[i].tolerated_failures >= 1) in btrfs_balance()
4124 allowed |= btrfs_raid_array[i].bg_flag; in btrfs_balance()
4942 ctl->sub_stripes = btrfs_raid_array[index].sub_stripes; in init_alloc_chunk_ctl()
4943 ctl->dev_stripes = btrfs_raid_array[index].dev_stripes; in init_alloc_chunk_ctl()
4944 ctl->devs_max = btrfs_raid_array[index].devs_max; in init_alloc_chunk_ctl()
4947 ctl->devs_min = btrfs_raid_array[index].devs_min; in init_alloc_chunk_ctl()
4948 ctl->devs_increment = btrfs_raid_array[index].devs_increment; in init_alloc_chunk_ctl()
4949 ctl->ncopies = btrfs_raid_array[index].ncopies; in init_alloc_chunk_ctl()
4950 ctl->nparity = btrfs_raid_array[index].nparity; in init_alloc_chunk_ctl()
5385 return btrfs_raid_array[index].tolerated_failures; in btrfs_chunk_max_errors()
6632 int ncopies = btrfs_raid_array[index].ncopies; in calc_stripe_length()
6633 const int nparity = btrfs_raid_array[index].nparity; in calc_stripe_length()
7583 return btrfs_raid_array[index].ncopies; in btrfs_bg_type_to_factor()