All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs: assign error values to the correct bio structs
@ 2016-10-17  1:20 Junjie Mao
  2016-10-17 14:06 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Junjie Mao @ 2016-10-17  1:20 UTC (permalink / raw)
  To: Chris Mason
  Cc: Josef Bacik, David Sterba, linux-btrfs, linux-kernel, Junjie Mao

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] btrfs: assign error values to the correct bio structs
  2016-10-17  1:20 [PATCH] btrfs: assign error values to the correct bio structs Junjie Mao
@ 2016-10-17 14:06 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2016-10-17 14:06 UTC (permalink / raw)
  To: Junjie Mao
  Cc: Chris Mason, Josef Bacik, David Sterba, linux-btrfs, linux-kernel

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+

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-17 14:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-17  1:20 [PATCH] btrfs: assign error values to the correct bio structs Junjie Mao
2016-10-17 14:06 ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.