net: split __zerocopy_sg_from_iter()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 27 Jun 2024 12:59:42 +0000 (13:59 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 2 Jul 2024 10:06:50 +0000 (12:06 +0200)
commit7fb05423fed41686ccc1a76c20d486728f62023f
tree9c3cc2a6ae77be07d23a9aadff13e0380afe8883
parent9e2db9d3993e270b24fbc4ce1ca7e09756e8df25
net: split __zerocopy_sg_from_iter()

Split a function out of __zerocopy_sg_from_iter() that only cares about
the traditional path with refcounted pages and doesn't need to know
about ->sg_from_iter. A preparation patch, we'll improve on the function
later.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/datagram.c