block: use bio_release_pages in bio_map_user_iov
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Jun 2019 13:49:23 +0000 (15:49 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 29 Jun 2019 15:47:31 +0000 (09:47 -0600)
commit506e0798479ed54d48f063547b1b62d33b18d54c
tree7fd7e0c2ad0aab0e7f95d163ec1f2b1b8ce2fee1
parent163cc2d3cd87af82b589bc2327285505eeac3842
block: use bio_release_pages in bio_map_user_iov

Use bio_release_pages instead of open coding it.

Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c