Lines Matching refs:allowed
60 u64 allowed = 0; in btrfs_reduce_alloc_profile() local
77 allowed |= btrfs_raid_array[raid_type].bg_flag; in btrfs_reduce_alloc_profile()
79 allowed &= flags; in btrfs_reduce_alloc_profile()
82 if (allowed & BTRFS_BLOCK_GROUP_RAID1C4) in btrfs_reduce_alloc_profile()
83 allowed = BTRFS_BLOCK_GROUP_RAID1C4; in btrfs_reduce_alloc_profile()
84 else if (allowed & BTRFS_BLOCK_GROUP_RAID6) in btrfs_reduce_alloc_profile()
85 allowed = BTRFS_BLOCK_GROUP_RAID6; in btrfs_reduce_alloc_profile()
86 else if (allowed & BTRFS_BLOCK_GROUP_RAID1C3) in btrfs_reduce_alloc_profile()
87 allowed = BTRFS_BLOCK_GROUP_RAID1C3; in btrfs_reduce_alloc_profile()
88 else if (allowed & BTRFS_BLOCK_GROUP_RAID5) in btrfs_reduce_alloc_profile()
89 allowed = BTRFS_BLOCK_GROUP_RAID5; in btrfs_reduce_alloc_profile()
90 else if (allowed & BTRFS_BLOCK_GROUP_RAID10) in btrfs_reduce_alloc_profile()
91 allowed = BTRFS_BLOCK_GROUP_RAID10; in btrfs_reduce_alloc_profile()
92 else if (allowed & BTRFS_BLOCK_GROUP_RAID1) in btrfs_reduce_alloc_profile()
93 allowed = BTRFS_BLOCK_GROUP_RAID1; in btrfs_reduce_alloc_profile()
94 else if (allowed & BTRFS_BLOCK_GROUP_DUP) in btrfs_reduce_alloc_profile()
95 allowed = BTRFS_BLOCK_GROUP_DUP; in btrfs_reduce_alloc_profile()
96 else if (allowed & BTRFS_BLOCK_GROUP_RAID0) in btrfs_reduce_alloc_profile()
97 allowed = BTRFS_BLOCK_GROUP_RAID0; in btrfs_reduce_alloc_profile()
101 return extended_to_chunk(flags | allowed); in btrfs_reduce_alloc_profile()