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

Use bio_release_pages instead of duplicating it.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c