]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/volumes.c
Btrfs: fix comparison in __btrfs_map_block()
[karo-tx-linux.git] / fs / btrfs / volumes.c
index 14b2d19c842c054c64768e072801fe8a684d496c..4ff9c06cb1be323de61852f057aa4d846cae3701 100644 (file)
@@ -5494,7 +5494,7 @@ static int __btrfs_map_block(struct btrfs_fs_info *fs_info, int op,
                }
 
        } else if (map->type & BTRFS_BLOCK_GROUP_DUP) {
-               if (op == REQ_OP_WRITE || REQ_OP_DISCARD ||
+               if (op == REQ_OP_WRITE || op == REQ_OP_DISCARD ||
                    op == REQ_GET_READ_MIRRORS) {
                        num_stripes = map->num_stripes;
                } else if (mirror_num) {