Messages in this thread | | | Date | Tue, 27 Sep 2016 04:45:15 +0100 | From | Al Viro <> | Subject | Re: [PATCH 09/11] splice: use get_page_for_read() |
| |
On Wed, Sep 14, 2016 at 10:37:14AM +0200, Miklos Szeredi wrote: > What __generic_file_splice_read() does is get a series of uptodate pages > and put them into the pipe buffer. > > The get_page_for_read() helper can now be used to get the pages, > simplifying the code and making sure the splice(2) stays in sync with > read(2). > > For example get_page_for_read() can handle partially uptodate pages and now > splice can take advantage of these as well.
... or, better yet, kill __generic_file_splice_read() off.
| |