Amir Goldstein 705bcfcbde
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 <hch@lst.de>
Link: https://lore.kernel.org/linux-fsdevel/20231204083849.GC32438@lst.de/
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/r/20231212094440.250945-3-amir73il@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2023-12-12 16:20:02 +01:00
..
2023-11-03 23:28:34 +01:00
2023-11-10 09:52:56 -08:00
2023-11-10 09:52:56 -08:00
2023-11-10 09:52:56 -08:00
2023-11-10 09:52:56 -08:00
2022-01-11 22:13:01 +00:00
2023-08-22 09:01:48 +02:00
2023-11-10 09:52:56 -08:00
2023-11-10 09:52:56 -08:00
2022-03-01 18:26:37 +01:00
2023-11-03 23:28:34 +01:00
2023-11-10 09:52:56 -08:00
2023-11-10 09:52:56 -08:00