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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);
+3 −0
Original line number Diff line number Diff line
@@ -82,6 +82,9 @@ extern long do_splice(struct file *in, loff_t __user *off_in,
		      struct file *out, loff_t __user *off_out,
		      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
 */