]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
splice: export do_tee()
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 17 May 2020 11:18:05 +0000 (14:18 +0300)
committerJens Axboe <axboe@kernel.dk>
Sun, 17 May 2020 20:10:07 +0000 (14:10 -0600)
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>
fs/splice.c
include/linux/splice.h

index fd0a1e7e5959ad748e355b394e61240367b203e7..a1dd54de24d8e85028788fbc73d51932eb1f6478 100644 (file)
@@ -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);
index ebbbfea48aa0b335c3dc1081b0aa7c7d0212369e..5c47013f708e6d622bdce11d746ff7e44da52d50 100644 (file)
@@ -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
  */