block_dev: propagate bio_iov_iter_get_pages error in __blkdev_direct_IO
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Jun 2017 07:38:00 +0000 (09:38 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 9 Jun 2017 15:27:32 +0000 (09:27 -0600)
commit36ffc6c1c0e67acdacb53348350d0a37206dbadf
tree96661f7c76308bc4b0e58f5b8c5537a91cd0a5fa
parentd5245d7674d3f026a3178657936759d572d2d5d8
block_dev: propagate bio_iov_iter_get_pages error in __blkdev_direct_IO

Once we move the block layer to its own status code we'll still want to
propagate the bio_iov_iter_get_pages, so restructure __blkdev_direct_IO
to take ret into account when returning the errno.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/block_dev.c