Skip to content

Commit 14155ca

Browse files
Junjie Maotorvalds
authored andcommitted
btrfs: assign error values to the correct bio structs
Fixes: 4246a0b ("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]>
1 parent eac0ca7 commit 14155ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/btrfs/compression.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
698698

699699
ret = btrfs_map_bio(root, comp_bio, mirror_num, 0);
700700
if (ret) {
701-
bio->bi_error = ret;
701+
comp_bio->bi_error = ret;
702702
bio_endio(comp_bio);
703703
}
704704

@@ -728,7 +728,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
728728

729729
ret = btrfs_map_bio(root, comp_bio, mirror_num, 0);
730730
if (ret) {
731-
bio->bi_error = ret;
731+
comp_bio->bi_error = ret;
732732
bio_endio(comp_bio);
733733
}
734734

0 commit comments

Comments
 (0)