Skip to content

Commit bea4698

Browse files
Junjie Maogregkh
authored andcommitted
btrfs: assign error values to the correct bio structs
commit 14155ca upstream. Fixes: 4246a0b ("block: add a bi_error field to struct bio") Signed-off-by: Junjie Mao <[email protected]> Acked-by: David Sterba <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 42c9479 commit bea4698

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
@@ -694,7 +694,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
694694
ret = btrfs_map_bio(root, READ, comp_bio,
695695
mirror_num, 0);
696696
if (ret) {
697-
bio->bi_error = ret;
697+
comp_bio->bi_error = ret;
698698
bio_endio(comp_bio);
699699
}
700700

@@ -723,7 +723,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
723723

724724
ret = btrfs_map_bio(root, READ, comp_bio, mirror_num, 0);
725725
if (ret) {
726-
bio->bi_error = ret;
726+
comp_bio->bi_error = ret;
727727
bio_endio(comp_bio);
728728
}
729729

0 commit comments

Comments
 (0)