summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorVincent Stehlé <vincent.stehle@intel.com>2016-07-15 17:03:21 +0200
committerJens Axboe <axboe@fb.com>2016-07-18 23:28:23 +0200
commitdf5c82a8dcca1a5f23fefebae973d2dd0bf5aa11 (patch)
tree6a902616e256c500947590472c8258f9f55018fb /fs/btrfs/volumes.c
parentblock: atari: Return early for unsupported sector size (diff)
downloadlinux-df5c82a8dcca1a5f23fefebae973d2dd0bf5aa11.tar.xz
linux-df5c82a8dcca1a5f23fefebae973d2dd0bf5aa11.zip
Btrfs: fix comparison in __btrfs_map_block()
Add missing comparison to op in expression, which was forgotten when doing the REQ_OP transition. Fixes: b3d3fa519905 ("btrfs: update __btrfs_map_block for REQ_OP transition") Signed-off-by: Vincent Stehlé <vincent.stehle@intel.com> Reviewed-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to '')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 14b2d19c842c..4ff9c06cb1be 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -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) {