overlayfs: Implement splice-read
authorDavid Howells <dhowells@redhat.com>
Tue, 14 Feb 2023 15:23:13 +0000 (15:23 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 14 Feb 2023 16:47:26 +0000 (16:47 +0000)
commit02d1dac5e535c84918990acd772d5717f6ff2d27
tree40243452e52997f2d566a5d78ddbfb94ba20506d
parentcc606dc4fb8db137ec765d586b8bf76ba5740bbf
overlayfs: Implement splice-read

Implement splice-read for overlayfs by passing the request down a layer
rather than going through generic_file_splice_read() which is going to be
changed to assume that ->read_folio() is present on buffered files.

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: linux-unionfs@vger.kernel.org
cc: linux-block@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
fs/overlayfs/file.c