diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-06-13 08:07:33 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-06-16 09:47:15 -0600 |
commit | a462b950834945db22f94aa98181f861eff0574d (patch) | |
tree | 400c890efdbde6621d4d27c2bdb35e6461b9908d /block/bio.c | |
parent | 047385b3dd85622768a882fc457a37e040640389 (diff) | |
download | linux-stable-a462b950834945db22f94aa98181f861eff0574d.tar.gz linux-stable-a462b950834945db22f94aa98181f861eff0574d.tar.bz2 linux-stable-a462b950834945db22f94aa98181f861eff0574d.zip |
block: Dedicated error code fixups
This patch fixes two sparse warnings introduced by the "dedicated
error codes for the block layer V3" patch series. These changes
have not been tested.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/bio.c')
-rw-r--r-- | block/bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/bio.c b/block/bio.c index 7a5c8ed27f42..0e36ca5407b5 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1817,8 +1817,8 @@ again: } if (bio->bi_bdev && bio_flagged(bio, BIO_TRACE_COMPLETION)) { - trace_block_bio_complete(bdev_get_queue(bio->bi_bdev), - bio, bio->bi_status); + trace_block_bio_complete(bdev_get_queue(bio->bi_bdev), bio, + blk_status_to_errno(bio->bi_status)); bio_clear_flag(bio, BIO_TRACE_COMPLETION); } |