diff options
author | Amir Goldstein <amir73il@gmail.com> | 2023-10-13 12:13:12 +0300 |
---|---|---|
committer | Amir Goldstein <amir73il@gmail.com> | 2023-12-23 17:35:09 +0300 |
commit | 9b7e9e2f5d5c3d079ec46bc71b114012e362ea6e (patch) | |
tree | a3a6266457b1440aaa4c7ae10e5bb60fa691ecd8 /include/linux/backing-file.h | |
parent | a6293b3e285cd0d7692141d7981a5f144f0e2f0b (diff) | |
download | linux-9b7e9e2f5d5c3d079ec46bc71b114012e362ea6e.tar.xz |
fs: factor out backing_file_splice_{read,write}() helpers
There is not much in those helpers, but it makes sense to have them
logically next to the backing_file_{read,write}_iter() helpers as they
may grow more common logic in the future.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'include/linux/backing-file.h')
-rw-r--r-- | include/linux/backing-file.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/backing-file.h b/include/linux/backing-file.h index 0648d548a418..0546d5b1c9f5 100644 --- a/include/linux/backing-file.h +++ b/include/linux/backing-file.h @@ -28,5 +28,13 @@ ssize_t backing_file_read_iter(struct file *file, struct iov_iter *iter, ssize_t backing_file_write_iter(struct file *file, struct iov_iter *iter, struct kiocb *iocb, int flags, struct backing_file_ctx *ctx); +ssize_t backing_file_splice_read(struct file *in, loff_t *ppos, + struct pipe_inode_info *pipe, size_t len, + unsigned int flags, + struct backing_file_ctx *ctx); +ssize_t backing_file_splice_write(struct pipe_inode_info *pipe, + struct file *out, loff_t *ppos, size_t len, + unsigned int flags, + struct backing_file_ctx *ctx); #endif /* _LINUX_BACKING_FILE_H */ |