Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df5c82a8 authored by Vincent Stehlé's avatar Vincent Stehlé Committed by Jens Axboe
Browse files

Btrfs: fix comparison in __btrfs_map_block()



Add missing comparison to op in expression, which was forgotten when doing
the REQ_OP transition.

Fixes: b3d3fa51 ("btrfs: update __btrfs_map_block for REQ_OP transition")
Signed-off-by: default avatarVincent Stehlé <vincent.stehle@intel.com>
Reviewed-by: default avatarMike Christie <mchristi@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 9c874716
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {