Messages in this thread | | | Date | Wed, 8 Mar 2023 15:45:27 +0100 | From | Greg Kroah-Hartman <> | Subject | Re: [PATCH v16 05/13] tty, proc, kernfs, random: Use direct_splice_read() |
| |
On Wed, Mar 08, 2023 at 02:37:46PM +0000, David Howells wrote: > Use direct_splice_read() for tty, procfs, kernfs and random files rather > than going through generic_file_splice_read() as they just copy the file > into the output buffer and don't splice pages. This avoids the need for > them to have a ->read_folio() to satisfy filemap_splice_read(). > > Signed-off-by: David Howells <dhowells@redhat.com> > cc: Christoph Hellwig <hch@lst.de> > cc: Jens Axboe <axboe@kernel.dk> > cc: Al Viro <viro@zeniv.linux.org.uk> > cc: John Hubbard <jhubbard@nvidia.com> > cc: David Hildenbrand <david@redhat.com> > cc: Matthew Wilcox <willy@infradead.org> > cc: Miklos Szeredi <miklos@szeredi.hu> > cc: Arnd Bergmann <arnd@arndb.de> > cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > cc: linux-block@vger.kernel.org > cc: linux-fsdevel@vger.kernel.org > cc: linux-mm@kvack.org
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| |