Linux 5.18 compat: bio_alloc()
commit5f264996f4dc2d5279afe96698688a20c281c473
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 May 2022 20:28:51 +0000 (27 20:28 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 31 May 2022 19:04:03 +0000 (31 12:04 -0700)
tree16cd400e9067a58219f0bf46e85a393438eb4082
parent152d6fda54e61042a70059c95c44b364aea0bbd8
Linux 5.18 compat: bio_alloc()

As for the Linux 5.18 kernel bio_alloc() expects a block_device struct
as an argument.  This removes the need for the bio_set_dev() compatibility
code for 5.18 and newer kernels.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13515
module/os/linux/zfs/vdev_disk.c