Commit 9dafdfc2 authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe

splice: export do_tee()

export do_tee() for use in io_uring
Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c11368a5
...@@ -1754,8 +1754,7 @@ static int link_pipe(struct pipe_inode_info *ipipe, ...@@ -1754,8 +1754,7 @@ static int link_pipe(struct pipe_inode_info *ipipe,
* The 'flags' used are the SPLICE_F_* variants, currently the only * The 'flags' used are the SPLICE_F_* variants, currently the only
* applicable one is SPLICE_F_NONBLOCK. * applicable one is SPLICE_F_NONBLOCK.
*/ */
static long do_tee(struct file *in, struct file *out, size_t len, long do_tee(struct file *in, struct file *out, size_t len, unsigned int flags)
unsigned int flags)
{ {
struct pipe_inode_info *ipipe = get_pipe_info(in); struct pipe_inode_info *ipipe = get_pipe_info(in);
struct pipe_inode_info *opipe = get_pipe_info(out); struct pipe_inode_info *opipe = get_pipe_info(out);
......
...@@ -82,6 +82,9 @@ extern long do_splice(struct file *in, loff_t __user *off_in, ...@@ -82,6 +82,9 @@ extern long do_splice(struct file *in, loff_t __user *off_in,
struct file *out, loff_t __user *off_out, struct file *out, loff_t __user *off_out,
size_t len, unsigned int flags); size_t len, unsigned int flags);
extern long do_tee(struct file *in, struct file *out, size_t len,
unsigned int flags);
/* /*
* for dynamic pipe sizing * for dynamic pipe sizing
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment