Commit 1c118596a7682912106c80007102ce0184c77780
1 parent
4aa7c6346b
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
vfs: export do_splice_direct() to modules
Export do_splice_direct() to modules. Needed by overlay filesystem. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Showing 3 changed files with 4 additions and 6 deletions Side-by-side Diff
fs/internal.h
... | ... | @@ -139,12 +139,6 @@ |
139 | 139 | extern int rw_verify_area(int, struct file *, const loff_t *, size_t); |
140 | 140 | |
141 | 141 | /* |
142 | - * splice.c | |
143 | - */ | |
144 | -extern long do_splice_direct(struct file *in, loff_t *ppos, struct file *out, | |
145 | - loff_t *opos, size_t len, unsigned int flags); | |
146 | - | |
147 | -/* | |
148 | 142 | * pipe.c |
149 | 143 | */ |
150 | 144 | extern const struct file_operations pipefifo_fops; |
fs/splice.c
include/linux/fs.h
... | ... | @@ -2456,6 +2456,9 @@ |
2456 | 2456 | struct file *, loff_t *, size_t, unsigned int); |
2457 | 2457 | extern ssize_t generic_splice_sendpage(struct pipe_inode_info *pipe, |
2458 | 2458 | struct file *out, loff_t *, size_t len, unsigned int flags); |
2459 | +extern long do_splice_direct(struct file *in, loff_t *ppos, struct file *out, | |
2460 | + loff_t *opos, size_t len, unsigned int flags); | |
2461 | + | |
2459 | 2462 | |
2460 | 2463 | extern void |
2461 | 2464 | file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping); |