diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-05-17 14:18:05 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-17 14:10:07 -0600 |
commit | 9dafdfc2f0a3ae551711098de3d7b621a469f11a (patch) | |
tree | dea5ad91fd3b7f956eecc0b50e34d2b64446bbc3 /fs/splice.c | |
parent | c11368a57be460de889696f6ff8815fbcacf4db2 (diff) | |
download | lwn-9dafdfc2f0a3ae551711098de3d7b621a469f11a.tar.gz lwn-9dafdfc2f0a3ae551711098de3d7b621a469f11a.zip |
splice: export do_tee()
export do_tee() for use in io_uring
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/splice.c')
-rw-r--r-- | fs/splice.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/splice.c b/fs/splice.c index fd0a1e7e5959..a1dd54de24d8 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -1754,8 +1754,7 @@ static int link_pipe(struct pipe_inode_info *ipipe, * The 'flags' used are the SPLICE_F_* variants, currently the only * applicable one is SPLICE_F_NONBLOCK. */ -static long do_tee(struct file *in, struct file *out, size_t len, - unsigned int flags) +long do_tee(struct file *in, struct file *out, size_t len, unsigned int flags) { struct pipe_inode_info *ipipe = get_pipe_info(in); struct pipe_inode_info *opipe = get_pipe_info(out); |