Searched refs:raid_type (Results 1 – 2 of 2) sorted by relevance
3709 int raid_type; in btrfs_get_num_tolerated_disk_barrier_failures() local3718 for (raid_type = 0; raid_type < BTRFS_NR_RAID_TYPES; raid_type++) { in btrfs_get_num_tolerated_disk_barrier_failures()3719 if (raid_type == BTRFS_RAID_SINGLE) in btrfs_get_num_tolerated_disk_barrier_failures()3721 if (!(flags & btrfs_raid_array[raid_type].bg_flag)) in btrfs_get_num_tolerated_disk_barrier_failures()3724 btrfs_raid_array[raid_type]. in btrfs_get_num_tolerated_disk_barrier_failures()
4013 u64 raid_type; in btrfs_reduce_alloc_profile() local4032 for (raid_type = 0; raid_type < BTRFS_NR_RAID_TYPES; raid_type++) { in btrfs_reduce_alloc_profile()4033 if (num_devices >= btrfs_raid_array[raid_type].devs_min) in btrfs_reduce_alloc_profile()4034 allowed |= btrfs_raid_array[raid_type].bg_flag; in btrfs_reduce_alloc_profile()