Pavel Begunkov wrote: > Currently, io_uring's io_sg_from_iter() duplicates the part of > __zerocopy_sg_from_iter() charging pages to the socket. It'd be too easy > to miss while changing it in net/, the chunk is not the most > straightforward for outside users and full of internal implementation > details. io_uring is not a good place to keep it, deduplicate it by > moving out of the callback into __zerocopy_sg_from_iter(). > > Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> Reviewed-by: Willem de Bruijn <willemb@xxxxxxxxxx>