splice: make do_splice public
Make do_splice(), so other kernel parts can reuse it Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
bcaec089c5
commit
444ebb5768
|
@ -1109,7 +1109,7 @@ static int splice_pipe_to_pipe(struct pipe_inode_info *ipipe,
|
||||||
/*
|
/*
|
||||||
* Determine where to splice to/from.
|
* Determine where to splice to/from.
|
||||||
*/
|
*/
|
||||||
static long do_splice(struct file *in, loff_t __user *off_in,
|
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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -78,6 +78,9 @@ extern ssize_t add_to_pipe(struct pipe_inode_info *,
|
||||||
struct pipe_buffer *);
|
struct pipe_buffer *);
|
||||||
extern ssize_t splice_direct_to_actor(struct file *, struct splice_desc *,
|
extern ssize_t splice_direct_to_actor(struct file *, struct splice_desc *,
|
||||||
splice_direct_actor *);
|
splice_direct_actor *);
|
||||||
|
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);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* for dynamic pipe sizing
|
* for dynamic pipe sizing
|
||||||
|
|
Loading…
Reference in New Issue