summaryrefslogtreecommitdiff
path: root/include/linux/backing-file.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2023-10-13 12:13:12 +0300
committerAmir Goldstein <amir73il@gmail.com>2023-12-23 16:35:09 +0200
commit9b7e9e2f5d5c3d079ec46bc71b114012e362ea6e (patch)
treea3a6266457b1440aaa4c7ae10e5bb60fa691ecd8 /include/linux/backing-file.h
parenta6293b3e285cd0d7692141d7981a5f144f0e2f0b (diff)
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.h8
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 */