aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2018-04-25 19:01:43 +0800
committerDavid Sterba <dsterba@suse.com>2018-05-28 18:07:27 +0200
commit41a6e8913cdff6b30ac53a24641259d117c0b101 (patch)
tree1e27218bccdeb150cade9ee04c7c98767261b79e /fs/btrfs/extent-tree.c
parentbtrfs: move btrfs_raid_type_names values to btrfs_raid_attr table (diff)
downloadlinux-dev-41a6e8913cdff6b30ac53a24641259d117c0b101.tar.xz
linux-dev-41a6e8913cdff6b30ac53a24641259d117c0b101.zip
btrfs: move btrfs_raid_group values to btrfs_raid_attr table
Add a new member struct btrfs_raid_attr::bg_flag so that btrfs_raid_array can maintain the bit map flag of the raid type, and so we can drop btrfs_raid_group. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index ed262d44ff8a..fdd6ac9ee2c6 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -4180,7 +4180,7 @@ static u64 btrfs_reduce_alloc_profile(struct btrfs_fs_info *fs_info, u64 flags)
/* First, mask out the RAID levels which aren't possible */
for (raid_type = 0; raid_type < BTRFS_NR_RAID_TYPES; raid_type++) {
if (num_devices >= btrfs_raid_array[raid_type].devs_min)
- allowed |= btrfs_raid_group[raid_type];
+ allowed |= btrfs_raid_array[raid_type].bg_flag;
}
allowed &= flags;