[PATCH v2 3/7] iov_iter: export __import_iovec

Yang Xiuwei <[email protected]>
Newsgroups org.kernel.vger.linux-btrfs,org.kernel.vger.io-uring,org.kernel.vger.linux-block,org.kernel.vger.linux-fsdevel
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.