aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/volumes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 03f223aa7194..9024eee889b9 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -6791,10 +6791,10 @@ static int btrfs_check_chunk_valid(struct btrfs_fs_info *fs_info,
6791 } 6791 }
6792 6792
6793 if ((type & BTRFS_BLOCK_GROUP_RAID10 && sub_stripes != 2) || 6793 if ((type & BTRFS_BLOCK_GROUP_RAID10 && sub_stripes != 2) ||
6794 (type & BTRFS_BLOCK_GROUP_RAID1 && num_stripes < 1) || 6794 (type & BTRFS_BLOCK_GROUP_RAID1 && num_stripes != 2) ||
6795 (type & BTRFS_BLOCK_GROUP_RAID5 && num_stripes < 2) || 6795 (type & BTRFS_BLOCK_GROUP_RAID5 && num_stripes < 2) ||
6796 (type & BTRFS_BLOCK_GROUP_RAID6 && num_stripes < 3) || 6796 (type & BTRFS_BLOCK_GROUP_RAID6 && num_stripes < 3) ||
6797 (type & BTRFS_BLOCK_GROUP_DUP && num_stripes > 2) || 6797 (type & BTRFS_BLOCK_GROUP_DUP && num_stripes != 2) ||
6798 ((type & BTRFS_BLOCK_GROUP_PROFILE_MASK) == 0 && 6798 ((type & BTRFS_BLOCK_GROUP_PROFILE_MASK) == 0 &&
6799 num_stripes != 1)) { 6799 num_stripes != 1)) {
6800 btrfs_err(fs_info, 6800 btrfs_err(fs_info,