Commit bea46981 authored by Junjie Mao's avatar Junjie Mao Committed by Greg Kroah-Hartman

btrfs: assign error values to the correct bio structs

commit 14155caf upstream.

Fixes: 4246a0b6 ("block: add a bi_error field to struct bio")
Signed-off-by: default avatarJunjie Mao <junjie.mao@enight.me>
Acked-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 42c94790
...@@ -694,7 +694,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, ...@@ -694,7 +694,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
ret = btrfs_map_bio(root, READ, comp_bio, ret = btrfs_map_bio(root, READ, comp_bio,
mirror_num, 0); mirror_num, 0);
if (ret) { if (ret) {
bio->bi_error = ret; comp_bio->bi_error = ret;
bio_endio(comp_bio); bio_endio(comp_bio);
} }
...@@ -723,7 +723,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, ...@@ -723,7 +723,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
ret = btrfs_map_bio(root, READ, comp_bio, mirror_num, 0); ret = btrfs_map_bio(root, READ, comp_bio, mirror_num, 0);
if (ret) { if (ret) {
bio->bi_error = ret; comp_bio->bi_error = ret;
bio_endio(comp_bio); bio_endio(comp_bio);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment