Home
last modified time | relevance | path

Searched refs:btrfs_raid_array (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/fs/btrfs/
Dtree-checker.c840 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()
Dvolumes.c53 const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = { variable
194 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 …]
Dvolumes.h585 extern const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES];
Dsuper.c1632 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()
Dblock-group.c93 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()
Ddisk-io.c3990 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()