HomeFreeBSD

Linux 4.20 compat: wrapper function for iov_iter type access

Description

Linux 4.20 compat: wrapper function for iov_iter type access

An iov_iter_type() function to access the "type" member of the struct
iov_iter was added at one point. Move the conditional logic to decide
which method to use for accessing it into a macro and simplify the
zpl_uio_init code.

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

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Jul 30 2023, 7:23 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 19 2023, 3:50 PM
Parents
rG0bf2c5365ed3: Linux 6.4 compat: iter_iov() function now used to get old iov member
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG8be6308e85cf: Linux 4.20 compat: wrapper function for iov_iter type access (authored by Coleman Kane <ckane@colemankane.org>).Sep 19 2023, 3:50 PM