From: David Howells Date: Wed, 15 Feb 2023 08:00:31 +0000 (+0000) Subject: splice: Export filemap/direct_splice_read() X-Git-Tag: v6.6.7~3464^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c8e01ebf2361eb397f32cd1c8ee402dda48dce0;p=platform%2Fkernel%2Flinux-starfive.git splice: Export filemap/direct_splice_read() filemap_splice_read() and direct_splice_read() should be exported. Signed-off-by: David Howells cc: Steve French cc: Jens Axboe cc: Christoph Hellwig cc: Al Viro cc: David Hildenbrand cc: John Hubbard 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 --- diff --git a/fs/splice.c b/fs/splice.c index 4c63328..928c7be 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -373,6 +373,7 @@ ssize_t direct_splice_read(struct file *in, loff_t *ppos, kfree(bv); return ret; } +EXPORT_SYMBOL(direct_splice_read); /** * generic_file_splice_read - splice data from file to a pipe diff --git a/mm/filemap.c b/mm/filemap.c index 162b4da..b794943 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2971,6 +2971,7 @@ out: return total_spliced ? total_spliced : error; } +EXPORT_SYMBOL(filemap_splice_read); static inline loff_t folio_seek_hole_data(struct xa_state *xas, struct address_space *mapping, struct folio *folio,