aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-04-02 17:22:06 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-02 17:22:06 -0400
commitd69636157ad8fa6bb9fff452cefb34fcace851b5 (patch)
treedc9c0cc41150042224a367ffcab77cf7d315e3a7 /include/linux
parent1810b6cb162e0c19e0ecbbacbcfd66f578f335ec (diff)
parent3e7ee3e7b36fa4e2d88d8fb0a2577be95fc4636d (diff)
Merge branch 'splice' of git://brick.kernel.dk/data/git/linux-2.6-block
* 'splice' of git://brick.kernel.dk/data/git/linux-2.6-block: [PATCH] splice: fix page stealing LRU handling. [PATCH] splice: page stealing needs to wait_on_page_writeback() [PATCH] splice: export generic_splice_sendpage [PATCH] splice: add a SPLICE_F_MORE flag [PATCH] splice: add comments documenting more of the code [PATCH] splice: improve writeback and clean up page stealing [PATCH] splice: fix shadow[] filling logic
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pipe_fs_i.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/pipe_fs_i.h b/include/linux/pipe_fs_i.h
index d218fc729319..ec384958d509 100644
--- a/include/linux/pipe_fs_i.h
+++ b/include/linux/pipe_fs_i.h
@@ -5,11 +5,14 @@
5 5
6#define PIPE_BUFFERS (16) 6#define PIPE_BUFFERS (16)
7 7
8#define PIPE_BUF_FLAG_STOLEN 0x01
9#define PIPE_BUF_FLAG_LRU 0x02
10
8struct pipe_buffer { 11struct pipe_buffer {
9 struct page *page; 12 struct page *page;
10 unsigned int offset, len; 13 unsigned int offset, len;
11 struct pipe_buf_operations *ops; 14 struct pipe_buf_operations *ops;
12 unsigned int stolen; 15 unsigned int flags;
13}; 16};
14 17
15struct pipe_buf_operations { 18struct pipe_buf_operations {
@@ -63,5 +66,6 @@ void free_pipe_info(struct inode* inode);
63#define SPLICE_F_NONBLOCK (0x02) /* don't block on the pipe splicing (but */ 66#define SPLICE_F_NONBLOCK (0x02) /* don't block on the pipe splicing (but */
64 /* we may still block on the fd we splice */ 67 /* we may still block on the fd we splice */
65 /* from/to, of course */ 68 /* from/to, of course */
69#define SPLICE_F_MORE (0x04) /* expect more data */
66 70
67#endif 71#endif