HomeFreeBSD

Linux 6.5 compat: replace generic_file_splice_read with filemap_splice_read

Description

Linux 6.5 compat: replace generic_file_splice_read with filemap_splice_read

The generic_file_splice_read function was removed in Linux 6.5 in favor
of filemap_splice_read. Add an autoconf test for filemap_splice_read and
use it if it is found as the handler for .splice_read in the
file_operations struct. Additionally, ITER_PIPE was removed in 6.5. This
change removes the ITER_* macros that OpenZFS doesn't use from being
tested in config/kernel-vfs-iov_iter.m4. The removal of ITER_PIPE was
causing the test to fail, which also affected the code responsible for
setting the .splice_read handler, above. That behavior caused run-time
panics on Linux 6.5.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #15155

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Aug 7 2023, 10:47 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 19 2023, 3:50 PM
Parents
rG31a4673c05ea: Linux 6.5 compat: register_sysctl_table removed
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG5a22de144abf: Linux 6.5 compat: replace generic_file_splice_read with filemap_splice_read (authored by Coleman Kane <ckane@colemankane.org>).Sep 19 2023, 3:50 PM