]> git.baikalelectronics.ru Git - kernel.git/commit
splice: change exported internal do_splice() helper to take kernel offset
authorJens Axboe <axboe@kernel.dk>
Thu, 22 Oct 2020 20:15:51 +0000 (14:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Oct 2020 20:15:51 +0000 (14:15 -0600)
commit3f30a91a9eed3dcc85969040b623de8826f4f98c
tree9c35381d870a6fb2d147ded522d564cc96210e03
parentb3f8e584f0db643e4a57b65ffa15a84aa801cb6f
splice: change exported internal do_splice() helper to take kernel offset

With the set_fs change, we can no longer rely on copy_{to,from}_user()
accepting a kernel pointer, and it was bad form to do so anyway. Clean
this up and change the internal helper that io_uring uses to deal with
kernel pointers instead. This puts the offset copy in/out in __do_splice()
instead, which just calls the same helper.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/splice.c
include/linux/splice.h