splice: Do splice read from a file without using ITER_PIPE
authorDavid Howells <dhowells@redhat.com>
Wed, 8 Feb 2023 15:35:40 +0000 (15:35 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 14 Feb 2023 17:09:41 +0000 (17:09 +0000)
commit8dfb4a09b1bc544e49c0084527f8954a1cb78148
tree1b90e15e0d5c64ad50dd087b3f2fb7130ac435b4
parent5c93cead0175f9f8747d073c34cf999ed1af0156
splice: Do splice read from a file without using ITER_PIPE

Make generic_file_splice_read() use filemap_splice_read() and
direct_splice_read() rather than using an ITER_PIPE and call_read_iter().

With this, ITER_PIPE is no longer used.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jens Axboe <axboe@kernel.dk>
cc: Christoph Hellwig <hch@lst.de>
cc: Al Viro <viro@zeniv.linux.org.uk>
cc: David Hildenbrand <david@redhat.com>
cc: John Hubbard <jhubbard@nvidia.com>
cc: linux-mm@kvack.org
cc: linux-block@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
fs/splice.c