btrfs: add mask for all RAID1 types
[sfrench/cifs-2.6.git] / fs / btrfs / scrub.c
index 9f0297d529d4835fb8c64d623ed45b6551ce1bf7..0c99cf9fb595c25e8954223ef27ccc2da33f3777 100644 (file)
@@ -3091,7 +3091,7 @@ static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx,
                offset = map->stripe_len * (num / map->sub_stripes);
                increment = map->stripe_len * factor;
                mirror_num = num % map->sub_stripes + 1;
-       } else if (map->type & BTRFS_BLOCK_GROUP_RAID1) {
+       } else if (map->type & BTRFS_BLOCK_GROUP_RAID1_MASK) {
                increment = map->stripe_len;
                mirror_num = num % map->num_stripes + 1;
        } else if (map->type & BTRFS_BLOCK_GROUP_DUP) {