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

Commit bd7d63c2 authored by Liu Bo's avatar Liu Bo Committed by David Sterba
Browse files

Btrfs: use btrfs_op instead of bio_op in __btrfs_map_block



This seems to be a leftover of commit cf8cddd3 ("btrfs: don't
abuse REQ_OP_* flags for btrfs_map_block").

It should use btrfs_op() helper to provide one of 'enum btrfs_map_op'
types.

Fixes: cf8cddd3 ("btrfs: don't abuse REQ_OP_* flags for btrfs_map_block")
Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
Reviewed-by: default avatarSatoru Takeuchi <satoru.takeuchi@gmail.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent fed3b381
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6166,7 +6166,7 @@ int btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio,
	map_length = length;

	btrfs_bio_counter_inc_blocked(fs_info);
	ret = __btrfs_map_block(fs_info, bio_op(bio), logical,
	ret = __btrfs_map_block(fs_info, btrfs_op(bio), logical,
				&map_length, &bbio, mirror_num, 1);
	if (ret) {
		btrfs_bio_counter_dec(fs_info);