block: use bio_release_pages in bio_unmap_user
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Jun 2019 13:49:22 +0000 (15:49 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 29 Jun 2019 15:47:31 +0000 (09:47 -0600)
commit163cc2d3cd87af82b589bc2327285505eeac3842
tree3f05635fc1546e62883f49c9a7cba88ecf785acf
parentd241a95f3514a5eb544dfd8d9d141ffd1c89b707
block: use bio_release_pages in bio_unmap_user

Use bio_release_pages instead of open coding it.

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