]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ublk: split out ublk_user_copy() helper
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 8 Jan 2026 09:19:34 +0000 (02:19 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Jan 2026 16:15:05 +0000 (09:15 -0700)
commit5bfbbc9938f5dee7f252ef05f47b9a26f05f281a
treef615ea63be22cc48bd2b410df00c4a5dc6630553
parentfc652d415cd8b45e9a534d1c019da175cca4c95a
ublk: split out ublk_user_copy() helper

ublk_ch_read_iter() and ublk_ch_write_iter() are nearly identical except
for the iter direction. Split out a helper function ublk_user_copy() to
reduce the code duplication as these functions are about to get larger.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c