Lines Matching refs:btrfs_raid_array
34 const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = { variable
135 return btrfs_raid_array[index].raid_name; in btrfs_bg_type_to_raid_name()
173 DESCRIBE_FLAG(btrfs_raid_array[i].bg_flag, in btrfs_describe_block_groups()
174 btrfs_raid_array[i].raid_name); in btrfs_describe_block_groups()
2016 if (!(all_avail & btrfs_raid_array[i].bg_flag)) in btrfs_check_raid_min_devices()
2019 if (num_devices < btrfs_raid_array[i].devs_min) { in btrfs_check_raid_min_devices()
2020 int ret = btrfs_raid_array[i].mindev_error; in btrfs_check_raid_min_devices()
3463 const int ncopies = btrfs_raid_array[index].ncopies; in calc_data_stripes()
3464 const int nparity = btrfs_raid_array[index].nparity; in calc_data_stripes()
4077 for (i = 0; i < ARRAY_SIZE(btrfs_raid_array); i++) in btrfs_balance()
4078 if (num_devices >= btrfs_raid_array[i].devs_min) in btrfs_balance()
4079 allowed |= btrfs_raid_array[i].bg_flag; in btrfs_balance()
4108 for (i = 0; i < ARRAY_SIZE(btrfs_raid_array); i++) { in btrfs_balance()
4109 if (btrfs_raid_array[i].ncopies >= 2 || in btrfs_balance()
4110 btrfs_raid_array[i].tolerated_failures >= 1) in btrfs_balance()
4111 allowed |= btrfs_raid_array[i].bg_flag; in btrfs_balance()
4947 sub_stripes = btrfs_raid_array[index].sub_stripes; in __btrfs_alloc_chunk()
4948 dev_stripes = btrfs_raid_array[index].dev_stripes; in __btrfs_alloc_chunk()
4949 devs_max = btrfs_raid_array[index].devs_max; in __btrfs_alloc_chunk()
4952 devs_min = btrfs_raid_array[index].devs_min; in __btrfs_alloc_chunk()
4953 devs_increment = btrfs_raid_array[index].devs_increment; in __btrfs_alloc_chunk()
4954 ncopies = btrfs_raid_array[index].ncopies; in __btrfs_alloc_chunk()
4955 nparity = btrfs_raid_array[index].nparity; in __btrfs_alloc_chunk()
5324 return btrfs_raid_array[index].tolerated_failures; in btrfs_chunk_max_errors()
6699 int ncopies = btrfs_raid_array[index].ncopies; in calc_stripe_length()
7646 return btrfs_raid_array[index].ncopies; in btrfs_bg_type_to_factor()