mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04: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 <[email protected]>
Acked-by: David Sterba <[email protected]>
Cc: [email protected] # 4.3+
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
eac0ca77e4
commit
14155cafea
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
if (ret) {
|
||||
bio->bi_error = ret;
|
||||
comp_bio->bi_error = ret;
|
||||
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);
|
||||
if (ret) {
|
||||
bio->bi_error = ret;
|
||||
comp_bio->bi_error = ret;
|
||||
bio_endio(comp_bio);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue