Skip to content

Commit 21fe8c7

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 56a17dd commit 21fe8c7

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
@@ -690,7 +690,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
690690
ret = btrfs_map_bio(root, READ, comp_bio,
691691
mirror_num, 0);
692692
if (ret) {
693-
bio->bi_error = ret;
693+
comp_bio->bi_error = ret;
694694
bio_endio(comp_bio);
695695
}
696696

@@ -719,7 +719,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
719719

720720
ret = btrfs_map_bio(root, READ, comp_bio, mirror_num, 0);
721721
if (ret) {
722-
bio->bi_error = ret;
722+
comp_bio->bi_error = ret;
723723
bio_endio(comp_bio);
724724
}
725725

0 commit comments

Comments
 (0)