mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
[PATCH] splice: improve writeback and clean up page stealing
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>
This commit is contained in:
parent
53cd9ae886
commit
4f6f0bd2ff
3 changed files with 48 additions and 18 deletions
|
@ -9,7 +9,6 @@ struct pipe_buffer {
|
|||
struct page *page;
|
||||
unsigned int offset, len;
|
||||
struct pipe_buf_operations *ops;
|
||||
unsigned int stolen;
|
||||
};
|
||||
|
||||
struct pipe_buf_operations {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue