[PATCH v2 3/7] iov_iter: export __import_iovec
Yang Xiuwei <[email protected]> Thu, 6 Aug 2026 16:50:37 +0800
| Newsgroups | gmane.comp.file-systems.btrfs,gmane.linux.kernel.io-uring,gmane.linux.file-systems,gmane.linux.block |
|---|---|
| Message-ID | <[email protected]> |
__import_iovec() already takes an explicit compat flag for callers that cannot rely on in_compat_syscall() (io_uring SQPOLL / io-wq). Export it so loadable btrfs can use it for uring encoded IO. Signed-off-by: Yang Xiuwei <[email protected]> --- lib/iov_iter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/iov_iter.c b/lib/iov_iter.c index c2484551a4e8..9c2158d5ccdd 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c @@ -1410,6 +1410,7 @@ ssize_t __import_iovec(int type, const struct iovec __user *uvec, *iovp = iov; return total_len; } +EXPORT_SYMBOL_GPL(__import_iovec); /** * import_iovec() - Copy an array of &struct iovec from userspace -- 2.25.1