HomeFreeBSD

Linux 5.16: type member of iov_iter renamed iter_type

Description

Linux 5.16: type member of iov_iter renamed iter_type

The iov_iter->type member was renamed iov_iter->iter_type. However,
while looking into this, realized that in 2018 a iov_iter_type(*iov)
accessor function was introduced. So if that is present, use it,
otherwise fall back to trying the existing behavior of directly
accessing type from iov_iter.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #12819

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Dec 3 2021, 4:25 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 7 2021, 8:27 PM
Parents
rG435a451e5c5e: Linux 5.16: block_device_operations->submit_bio now returns void
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGf6e22561d21a: Linux 5.16: type member of iov_iter renamed iter_type (authored by Coleman Kane <ckane@colemankane.org>).Dec 7 2021, 8:27 PM