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
Tony Hutter <hutter2@llnl.gov>Committed on Sep 11 2023, 11:34 PM
Parents
rGcb115edfc6b9: Linux 6.5 compat: register_sysctl_table removed
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG9b7f7f02e972: Linux 6.5 compat: replace generic_file_splice_read with filemap_splice_read (authored by Coleman Kane <ckane@colemankane.org>).Sep 11 2023, 11:34 PM