Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

splice: Export filemap/direct_splice_read()

filemap_splice_read() and direct_splice_read() should be exported.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <sfrench@samba.org>
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-cifs@vger.kernel.org
cc: linux-mm@kvack.org
cc: linux-block@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>

authored by

David Howells and committed by
Steve French
7c8e01eb 7d58fe73

+2
+1
fs/splice.c
··· 373 373 kfree(bv); 374 374 return ret; 375 375 } 376 + EXPORT_SYMBOL(direct_splice_read); 376 377 377 378 /** 378 379 * generic_file_splice_read - splice data from file to a pipe
+1
mm/filemap.c
··· 2971 2971 2972 2972 return total_spliced ? total_spliced : error; 2973 2973 } 2974 + EXPORT_SYMBOL(filemap_splice_read); 2974 2975 2975 2976 static inline loff_t folio_seek_hole_data(struct xa_state *xas, 2976 2977 struct address_space *mapping, struct folio *folio,