mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
btrfs: assign error values to the correct bio structs
commit14155cafeaupstream. 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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
42c947900f
commit
bea4698176
@@ -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,
|
|||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user