]> git.openpandora.org Git - pandora-kernel.git/commitdiff
[PATCH] splice: improve writeback and clean up page stealing
authorJens Axboe <axboe@suse.de>
Sun, 2 Apr 2006 21:04:46 +0000 (23:04 +0200)
committerJens Axboe <axboe@suse.de>
Sun, 2 Apr 2006 21:04:46 +0000 (23:04 +0200)
By cleaning up the writeback logic (killing write_one_page() and the manual
set_page_dirty()), we can get rid of ->stolen inside the pipe_buffer and
just keep it local in pipe_to_file().

This also adds dirty page balancing logic and O_SYNC handling.

Signed-off-by: Jens Axboe <axboe@suse.de>
fs/pipe.c
fs/splice.c
include/linux/pipe_fs_i.h

index 109a102c150d3483da33f08d4ce69768de69b751..5093408746b8f0d16234b11e9e2c1620118638ee 100644 (file)
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -124,7 +124,6 @@ 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;
        return 0;
 }
 
diff --cc fs/splice.c
Simple merge
Simple merge