Searched refs:btrfs_raid_array (Results 1 – 6 of 6) sorted by relevance
798 ncopies = btrfs_raid_array[raid_index].ncopies; in btrfs_check_chunk_valid()799 nparity = btrfs_raid_array[raid_index].nparity; in btrfs_check_chunk_valid()895 sub_stripes != btrfs_raid_array[BTRFS_RAID_RAID10].sub_stripes) || in btrfs_check_chunk_valid()897 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1].devs_min) || in btrfs_check_chunk_valid()899 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1C3].devs_min) || in btrfs_check_chunk_valid()901 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1C4].devs_min) || in btrfs_check_chunk_valid()903 num_stripes < btrfs_raid_array[BTRFS_RAID_RAID5].devs_min) || in btrfs_check_chunk_valid()905 num_stripes < btrfs_raid_array[BTRFS_RAID_RAID6].devs_min) || in btrfs_check_chunk_valid()907 num_stripes != btrfs_raid_array[BTRFS_RAID_DUP].dev_stripes) || in btrfs_check_chunk_valid()909 num_stripes != btrfs_raid_array[BTRFS_RAID_SINGLE].dev_stripes))) { in btrfs_check_chunk_valid()
43 const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = { variable184 return btrfs_raid_array[index].raid_name; in btrfs_bg_type_to_raid_name()191 return btrfs_raid_array[index].nparity; in btrfs_nr_parity_stripes()229 DESCRIBE_FLAG(btrfs_raid_array[i].bg_flag, in btrfs_describe_block_groups()230 btrfs_raid_array[i].raid_name); in btrfs_describe_block_groups()1962 if (!(all_avail & btrfs_raid_array[i].bg_flag)) in btrfs_check_raid_min_devices()1965 if (num_devices < btrfs_raid_array[i].devs_min) in btrfs_check_raid_min_devices()1966 return btrfs_raid_array[i].mindev_error; in btrfs_check_raid_min_devices()3677 const int ncopies = btrfs_raid_array[index].ncopies; in calc_data_stripes()3678 const int nparity = btrfs_raid_array[index].nparity; in calc_data_stripes()[all …]
539 extern const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES];
2245 rattr = &btrfs_raid_array[btrfs_bg_flags_to_raid_index(type)]; in btrfs_calc_avail_data_space()2356 btrfs_raid_array[i].bg_flag); in btrfs_statfs()
77 if (num_devices >= btrfs_raid_array[raid_type].devs_min) in btrfs_reduce_alloc_profile()78 allowed |= btrfs_raid_array[raid_type].bg_flag; in btrfs_reduce_alloc_profile()3817 num_dev = btrfs_raid_array[btrfs_bg_flags_to_raid_index(type)].devs_max; in get_profile_num_devs()
4283 btrfs_raid_array[BTRFS_RAID_SINGLE]. in btrfs_get_num_tolerated_disk_barrier_failures()4289 if (!(flags & btrfs_raid_array[raid_type].bg_flag)) in btrfs_get_num_tolerated_disk_barrier_failures()4292 btrfs_raid_array[raid_type]. in btrfs_get_num_tolerated_disk_barrier_failures()