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
BugLink: http://bugs.launchpad.net/bugs/1637501

commit 14155ca upstream.

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
  • Loading branch information
Junjie Mao authored and Luis Henriques committed Nov 8, 2016
1 parent c30c94a commit cf9d826
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 @@ -694,7 +694,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
ret = btrfs_map_bio(root, READ, comp_bio,
mirror_num, 0);
if (ret) {
bio->bi_error = ret;
comp_bio->bi_error = ret;
bio_endio(comp_bio);
}

Expand Down Expand Up @@ -723,7 +723,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,

ret = btrfs_map_bio(root, READ, 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 cf9d826

Please sign in to comment.