aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 16be62041bfe..ff56c0bec43c 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -762,7 +762,7 @@ extern int fcntl_getlease(struct file *filp);
762#define SYNC_FILE_RANGE_WRITE 2 762#define SYNC_FILE_RANGE_WRITE 2
763#define SYNC_FILE_RANGE_WAIT_AFTER 4 763#define SYNC_FILE_RANGE_WAIT_AFTER 4
764extern int do_sync_file_range(struct file *file, loff_t offset, loff_t endbyte, 764extern int do_sync_file_range(struct file *file, loff_t offset, loff_t endbyte,
765 int flags); 765 unsigned int flags);
766 766
767/* fs/locks.c */ 767/* fs/locks.c */
768extern void locks_init_lock(struct file_lock *); 768extern void locks_init_lock(struct file_lock *);
@@ -1039,8 +1039,8 @@ struct file_operations {
1039 int (*check_flags)(int); 1039 int (*check_flags)(int);
1040 int (*dir_notify)(struct file *filp, unsigned long arg); 1040 int (*dir_notify)(struct file *filp, unsigned long arg);
1041 int (*flock) (struct file *, int, struct file_lock *); 1041 int (*flock) (struct file *, int, struct file_lock *);
1042 ssize_t (*splice_write)(struct inode *, struct file *, size_t, unsigned int); 1042 ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int);
1043 ssize_t (*splice_read)(struct file *, struct inode *, size_t, unsigned int); 1043 ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
1044}; 1044};
1045 1045
1046struct inode_operations { 1046struct inode_operations {
@@ -1614,8 +1614,17 @@ extern ssize_t generic_file_sendfile(struct file *, loff_t *, size_t, read_actor
1614extern void do_generic_mapping_read(struct address_space *mapping, 1614extern void do_generic_mapping_read(struct address_space *mapping,
1615 struct file_ra_state *, struct file *, 1615 struct file_ra_state *, struct file *,
1616 loff_t *, read_descriptor_t *, read_actor_t); 1616 loff_t *, read_descriptor_t *, read_actor_t);
1617extern ssize_t generic_file_splice_read(struct file *, struct inode *, size_t, unsigned int); 1617
1618extern ssize_t generic_file_splice_write(struct inode *, struct file *, size_t, unsigned int); 1618/* fs/splice.c */
1619extern ssize_t generic_file_splice_read(struct file *, loff_t *,
1620 struct pipe_inode_info *, size_t, unsigned int);
1621extern ssize_t generic_file_splice_write(struct pipe_inode_info *,
1622 struct file *, loff_t *, size_t, unsigned int);
1623extern ssize_t generic_splice_sendpage(struct pipe_inode_info *pipe,
1624 struct file *out, loff_t *, size_t len, unsigned int flags);
1625extern long do_splice_direct(struct file *in, loff_t *ppos, struct file *out,
1626 size_t len, unsigned int flags);
1627
1619extern void 1628extern void
1620file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping); 1629file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping);
1621extern ssize_t generic_file_readv(struct file *filp, const struct iovec *iov, 1630extern ssize_t generic_file_readv(struct file *filp, const struct iovec *iov,