HomeFreeBSD

linux 6.2 compat: bio->bi_rw was renamed bio->bi_opf

Description

linux 6.2 compat: bio->bi_rw was renamed bio->bi_opf

The bi_rw member of struct bio was renamed to bi_opf in Linux 6.2.
As well, Linux's implementation of bio_set_op_attrs(...) has been
removed.

The HAVE_BIO_BI_OPF macro already appears to be defined, but the
removal of the bio_set_op_attrs(...) implementation makes the build
fall back on the locally-defined implementation, which isn't updated
for the bio->bi_opf change. This commit adds that update.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #14324
Closes #14331

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Dec 27 2022, 3:59 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 10 2023, 4:43 PM
Parents
rGb586ea5d937b: linux 6.2 compat: get_acl() got moved to get_inode_acl() in 6.2
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG3c0b8c874bff: linux 6.2 compat: bio->bi_rw was renamed bio->bi_opf (authored by Coleman Kane <ckane@colemankane.org>).Jan 10 2023, 4:43 PM