diff options
| author | Amir Goldstein <[email protected]> | 2023-12-12 09:44:37 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2023-12-12 15:20:02 +0000 |
| commit | 705bcfcbde38b9dd4db00cd3deb0b98bddb0dd4a (patch) | |
| tree | 77e4d1a15c6bc790be3f6d5b215a707d9b21d61b /net/unix/sysctl_net_unix.c | |
| parent | splice: return type ssize_t from all helpers (diff) | |
| download | kernel-705bcfcbde38b9dd4db00cd3deb0b98bddb0dd4a.tar.gz kernel-705bcfcbde38b9dd4db00cd3deb0b98bddb0dd4a.zip | |
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 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
