diff options
| author | Octavian Purdila <tavip@google.com> | 2026-06-22 22:27:56 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-08-19 06:38:44 -0400 |
| commit | bb652c245b5b7081bb612a90f60cd59da373d049 (patch) | |
| tree | f8304b6aa5585497daa8b55a4bfe6a5f03dd516c /lib | |
| parent | bd670e5dfd2b01fd9692f61fa1456434c54026a4 (diff) | |
iov_iter: export iov_iter_restore
Export iov_iter_restore so that it can be used by modules.
This is needed by the virtio vsock transport (which can be built as a
module) to restore the msg_iter state when transmission fails.
Acked-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Octavian Purdila <tavip@google.com>
Message-ID: <20260622222757.2130402-2-tavip@google.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/iov_iter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/iov_iter.c b/lib/iov_iter.c index c2484551a4e8..227c6ee69da8 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c @@ -1491,6 +1491,7 @@ void iov_iter_restore(struct iov_iter *i, struct iov_iter_state *state) i->__iov -= state->nr_segs - i->nr_segs; i->nr_segs = state->nr_segs; } +EXPORT_SYMBOL_FOR_MODULES(iov_iter_restore, "vmw_vsock_virtio_transport_common"); /* * Extract a list of contiguous pages from an ITER_FOLIOQ iterator. This does |
