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
GitHub <noreply@github.com>Committed on Aug 7 2023, 10:47 PM
Parents
rGfdb8fff916f4: linux/spl/kmem_cache: undefine `kmem_cache_alloc` before defining it
Branches
Unknown
Tags
Unknown

Event Timeline