]> Pileus Git - ~andy/linux/blobdiff - fs/xfs/linux-2.6/xfs_lrw.h
[PATCH] splice: pass offset around for ->splice_read() and ->splice_write()
[~andy/linux] / fs / xfs / linux-2.6 / xfs_lrw.h
index 38864a88d42d4bb1195708fd9b047ebd907bc17c..8f4539952350e235991e857cdf97548e230f7632 100644 (file)
@@ -60,6 +60,8 @@ struct xfs_iomap;
 #define        XFS_IOMAP_ALLOC_ENTER   25
 #define        XFS_IOMAP_ALLOC_MAP     26
 #define        XFS_IOMAP_UNWRITTEN     27
+#define XFS_SPLICE_READ_ENTER  28
+#define XFS_SPLICE_WRITE_ENTER 29
 extern void xfs_rw_enter_trace(int, struct xfs_iocore *,
                                void *, size_t, loff_t, int);
 extern void xfs_inval_cached_trace(struct xfs_iocore *,
@@ -78,6 +80,7 @@ extern int xfs_bmap(struct bhv_desc *, xfs_off_t, ssize_t, int,
                        struct xfs_iomap *, int *);
 extern int xfsbdstrat(struct xfs_mount *, struct xfs_buf *);
 extern int xfs_bdstrat_cb(struct xfs_buf *);
+extern int xfs_dev_is_read_only(struct xfs_mount *, char *);
 
 extern int xfs_zero_eof(struct vnode *, struct xfs_iocore *, xfs_off_t,
                                xfs_fsize_t, xfs_fsize_t);
@@ -90,7 +93,11 @@ extern ssize_t xfs_write(struct bhv_desc *, struct kiocb *,
 extern ssize_t xfs_sendfile(struct bhv_desc *, struct file *,
                                loff_t *, int, size_t, read_actor_t,
                                void *, struct cred *);
-
-extern int xfs_dev_is_read_only(struct xfs_mount *, char *);
+extern ssize_t xfs_splice_read(struct bhv_desc *, struct file *, loff_t *,
+                               struct pipe_inode_info *, size_t, int, int,
+                               struct cred *);
+extern ssize_t xfs_splice_write(struct bhv_desc *, struct pipe_inode_info *,
+                               struct file *, loff_t *, size_t, int, int,
+                               struct cred *);
 
 #endif /* __XFS_LRW_H__ */