ublk: cleanup ublk_copy_user_pages
authorMing Lei <ming.lei@redhat.com>
Fri, 19 May 2023 06:50:26 +0000 (14:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 May 2023 01:59:17 +0000 (19:59 -0600)
commit981f95a571e3ca20a496c0b77dbf6b06039c6648
tree32f6c1e9636a2c1ada51f5d8200228a0364bc0cc
parentf236a21459a5cdd828b93f363946e116773494f6
ublk: cleanup ublk_copy_user_pages

Clean up ublk_copy_user_pages() by using iov_iter_get_pages2, and code
gets simplified a lot and becomes much more readable than before.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230519065030.351216-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c