fs: simplify dio_bio_complete
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Jun 2017 07:37:59 +0000 (09:37 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 9 Jun 2017 15:27:32 +0000 (09:27 -0600)
commitd5245d7674d3f026a3178657936759d572d2d5d8
tree0ac0a3c54ec6f63efcf6765130e721045bc3f87a
parent4055351cdbb44e8646ff67b346c80097e1d2c04c
fs: simplify dio_bio_complete

Only read bio->bi_error once in the common path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/direct-io.c