Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1501603 > unrolled thread
| Started by | Junjie Mao <junjie.mao@enight.me> |
|---|---|
| First post | 2016-10-17 04:40 +0200 |
| Last post | 2016-10-17 16:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] btrfs: assign error values to the correct bio structs Junjie Mao <junjie.mao@enight.me> - 2016-10-17 04:40 +0200
Re: [PATCH] btrfs: assign error values to the correct bio structs David Sterba <dsterba@suse.cz> - 2016-10-17 16:10 +0200
| From | Junjie Mao <junjie.mao@enight.me> |
|---|---|
| Date | 2016-10-17 04:40 +0200 |
| Subject | [PATCH] btrfs: assign error values to the correct bio structs |
| Message-ID | <st60h-5S6-3@gated-at.bofh.it> |
Fixes: 4246a0b63bd8 ("block: add a bi_error field to struct bio")
Signed-off-by: Junjie Mao <junjie.mao@enight.me>
---
fs/btrfs/compression.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index ccc70d96958d..d4d8b7e36b2f 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -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);
}
@@ -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);
}
--
1.9.3
[toc] | [next] | [standalone]
| From | David Sterba <dsterba@suse.cz> |
|---|---|
| Date | 2016-10-17 16:10 +0200 |
| Message-ID | <stgM2-4uk-23@gated-at.bofh.it> |
| In reply to | #1501603 |
On Mon, Oct 17, 2016 at 09:20:25AM +0800, Junjie Mao wrote:
> Fixes: 4246a0b63bd8 ("block: add a bi_error field to struct bio")
>
> Signed-off-by: Junjie Mao <junjie.mao@enight.me>
Ack, but please resend it with CC: stable@vger.kernel.org # 4.3+
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web