diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 14:22:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 14:22:06 -0700 |
commit | d69636157ad8fa6bb9fff452cefb34fcace851b5 (patch) | |
tree | dc9c0cc41150042224a367ffcab77cf7d315e3a7 /fs/pipe.c | |
parent | 1810b6cb162e0c19e0ecbbacbcfd66f578f335ec (diff) | |
parent | 3e7ee3e7b36fa4e2d88d8fb0a2577be95fc4636d (diff) | |
download | op-kernel-dev-d69636157ad8fa6bb9fff452cefb34fcace851b5.zip op-kernel-dev-d69636157ad8fa6bb9fff452cefb34fcace851b5.tar.gz |
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 'fs/pipe.c')
-rw-r--r-- | fs/pipe.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -95,6 +95,8 @@ static void anon_pipe_buf_release(struct pipe_inode_info *info, struct pipe_buff { struct page *page = buf->page; + buf->flags &= ~PIPE_BUF_FLAG_STOLEN; + /* * If nobody else uses this page, and we don't already have a * temporary page, let's keep track of it as a one-deep @@ -124,7 +126,7 @@ static void anon_pipe_buf_unmap(struct pipe_inode_info *info, struct pipe_buffer static int anon_pipe_buf_steal(struct pipe_inode_info *info, struct pipe_buffer *buf) { - buf->stolen = 1; + buf->flags |= PIPE_BUF_FLAG_STOLEN; return 0; } |