mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
btrfs: assign error values to the correct bio structs
Fixes: 4246a0b63b
("block: add a bi_error field to struct bio")
Signed-off-by: Junjie Mao <junjie.mao@enight.me>
Acked-by: David Sterba <dsterba@suse.cz>
Cc: stable@vger.kernel.org # 4.3+
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
eac0ca77e4
commit
14155cafea
@ -698,7 +698,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
|
|||||||
|
|
||||||
ret = btrfs_map_bio(root, comp_bio, mirror_num, 0);
|
ret = btrfs_map_bio(root, 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -728,7 +728,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
|
|||||||
|
|
||||||
ret = btrfs_map_bio(root, comp_bio, mirror_num, 0);
|
ret = btrfs_map_bio(root, 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user