Searched refs:btrfs_raid_array (Results 1 – 6 of 6) sorted by relevance
840 ncopies = btrfs_raid_array[raid_index].ncopies; in btrfs_check_chunk_valid()841 nparity = btrfs_raid_array[raid_index].nparity; in btrfs_check_chunk_valid()951 sub_stripes != btrfs_raid_array[BTRFS_RAID_RAID10].sub_stripes) || in btrfs_check_chunk_valid()953 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1].devs_min) || in btrfs_check_chunk_valid()955 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1C3].devs_min) || in btrfs_check_chunk_valid()957 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1C4].devs_min) || in btrfs_check_chunk_valid()959 num_stripes < btrfs_raid_array[BTRFS_RAID_RAID5].devs_min) || in btrfs_check_chunk_valid()961 num_stripes < btrfs_raid_array[BTRFS_RAID_RAID6].devs_min) || in btrfs_check_chunk_valid()963 num_stripes != btrfs_raid_array[BTRFS_RAID_DUP].dev_stripes) || in btrfs_check_chunk_valid()965 num_stripes != btrfs_raid_array[BTRFS_RAID_SINGLE].dev_stripes))) { in btrfs_check_chunk_valid()
53 const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = { variable194 return btrfs_raid_array[index].raid_name; in btrfs_bg_type_to_raid_name()201 return btrfs_raid_array[index].nparity; in btrfs_nr_parity_stripes()239 DESCRIBE_FLAG(btrfs_raid_array[i].bg_flag, in btrfs_describe_block_groups()240 btrfs_raid_array[i].raid_name); in btrfs_describe_block_groups()2006 if (!(all_avail & btrfs_raid_array[i].bg_flag)) in btrfs_check_raid_min_devices()2009 if (num_devices < btrfs_raid_array[i].devs_min) in btrfs_check_raid_min_devices()2010 return btrfs_raid_array[i].mindev_error; in btrfs_check_raid_min_devices()3839 const int ncopies = btrfs_raid_array[index].ncopies; in calc_data_stripes()3840 const int nparity = btrfs_raid_array[index].nparity; in calc_data_stripes()[all …]
585 extern const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES];
1632 rattr = &btrfs_raid_array[btrfs_bg_flags_to_raid_index(type)]; in btrfs_calc_avail_data_space()1743 btrfs_raid_array[i].bg_flag); in btrfs_statfs()
93 if (num_devices >= btrfs_raid_array[raid_type].devs_min) in btrfs_reduce_alloc_profile()94 allowed |= btrfs_raid_array[raid_type].bg_flag; in btrfs_reduce_alloc_profile()4227 num_dev = btrfs_raid_array[btrfs_bg_flags_to_raid_index(type)].devs_max; in get_profile_num_devs()
3990 btrfs_raid_array[BTRFS_RAID_SINGLE]. in btrfs_get_num_tolerated_disk_barrier_failures()3996 if (!(flags & btrfs_raid_array[raid_type].bg_flag)) in btrfs_get_num_tolerated_disk_barrier_failures()3999 btrfs_raid_array[raid_type]. in btrfs_get_num_tolerated_disk_barrier_failures()