cifs: Use generic_file_splice_read()
authorDavid Howells <dhowells@redhat.com>
Wed, 15 Mar 2023 16:35:42 +0000 (16:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Mar 2023 17:46:47 +0000 (11:46 -0600)
commitfa9a848ded4984a8c64d0d20c3a5b0aab97c7754
tree97aded377ab053068733bf28c55e965bdd200643
parent3eb3c59b128509a5e8a8349dafced64b9769438e
cifs: Use generic_file_splice_read()

Make cifs use generic_file_splice_read() rather than doing it for itself.

As a consequence, filemap_splice_read() no longer needs to be exported.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
cc: Jens Axboe <axboe@kernel.dk>
cc: Steve French <smfrench@gmail.com>
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-cifs@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
Link: https://lore.kernel.org/r/20230315163549.295454-2-dhowells@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/cifs/cifsfs.c
fs/cifs/cifsfs.h
fs/cifs/file.c
mm/filemap.c