diff options
author | David Howells <[email protected]> | 2023-02-15 08:00:31 +0000 |
---|---|---|
committer | Steve French <[email protected]> | 2023-02-20 17:25:43 -0600 |
commit | 7c8e01ebf2361eb397f32cd1c8ee402dda48dce0 (patch) | |
tree | 37c0182113d9a7a805d4cdc3ab347e453d7acca7 | |
parent | 7d58fe731028128f3a7e20b9c492be48aae133ee (diff) |
splice: Export filemap/direct_splice_read()
filemap_splice_read() and direct_splice_read() should be exported.
Signed-off-by: David Howells <[email protected]>
cc: Steve French <[email protected]>
cc: Jens Axboe <[email protected]>
cc: Christoph Hellwig <[email protected]>
cc: Al Viro <[email protected]>
cc: David Hildenbrand <[email protected]>
cc: John Hubbard <[email protected]>
cc: [email protected]
cc: [email protected]
cc: [email protected]
cc: [email protected]
Signed-off-by: Steve French <[email protected]>
-rw-r--r-- | fs/splice.c | 1 | ||||
-rw-r--r-- | mm/filemap.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/fs/splice.c b/fs/splice.c index 4c6332854b63..928c7be2f318 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 162b4daaeb99..b794943bce76 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, |