Skip to content

Commit

Permalink
btrfs: assign error values to the correct bio structs
Browse files Browse the repository at this point in the history
Fixes: 4246a0b ("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>
Cc: stable@vger.kernel.org # 4.3+
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Junjie Mao authored and torvalds committed Oct 17, 2016
1 parent eac0ca7 commit 14155ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/compression.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 14155ca

Please sign in to comment.