HomeFreeBSD

Linux 6.8 compat: update for new bdev access functions

Description

Linux 6.8 compat: update for new bdev access functions

blkdev_get_by_path() and blkdev_put() have been replaced by
bdev_open_by_path() and bdev_release(), which return a "handle" object
with the bdev object itself inside.

This adds detection for the new functions, and macros to handle the old
and new forms consistently.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #15805

Details

Provenance
rob.norris_klarasystems.comAuthored on Jan 23 2024, 4:42 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 29 2024, 7:36 PM
Parents
rGa41d0b29a9b3: Linux 6.8 compat: make test functions static
Branches
Unknown
Tags
Unknown