]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 6.8 compat: use splice_copy_file_range() for fallback
authorRob N <robn@despairlabs.com>
Wed, 20 Mar 2024 23:46:15 +0000 (10:46 +1100)
committerGitHub <noreply@github.com>
Wed, 20 Mar 2024 23:46:15 +0000 (16:46 -0700)
commitef08a4d4065d21414d7fedccac20da6bfda4dfd0
tree81966ab0a346a6c12c052517efc28733f82de946
parent90ff732358390ac395999577b703dcb4d3e0df59
Linux 6.8 compat: use splice_copy_file_range() for fallback

Linux 6.8 removes generic_copy_file_range(), which had been reduced to a
simple wrapper around splice_copy_file_range(). Detect that function
directly and use it if generic_ is not available.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #15930
Closes #15931
config/kernel-vfs-file_range.m4
config/kernel.m4
module/os/linux/zfs/zpl_file_range.c