diff options
| author | Amir Goldstein <[email protected]> | 2023-12-12 11:44:37 +0200 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2023-12-12 16:20:02 +0100 |
| commit | 705bcfcbde38b9dd4db00cd3deb0b98bddb0dd4a (patch) | |
| tree | 77e4d1a15c6bc790be3f6d5b215a707d9b21d61b /scripts/rustdoc_test_builder.rs | |
| parent | 0f292086c22b43202daffc14b585d3b54b9a1206 (diff) | |
fs: use splice_copy_file_range() inline helper
generic_copy_file_range() is just a wrapper around splice_file_range(),
which caps the maximum copy length.
The only caller of splice_file_range(), namely __ceph_copy_file_range()
is already ready to cope with short copy.
Move the length capping into splice_file_range() and replace the exported
symbol generic_copy_file_range() with a simple inline helper.
Suggested-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/linux-fsdevel/[email protected]/
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Amir Goldstein <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions