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
(cherry picked from commit ce782d080432506a41b49df32af6f0013b5775db)

Details

Provenance
rob.norris_klarasystems.comAuthored on Jan 23 2024, 4:42 AM
Tony Hutter <hutter2@llnl.gov>Committed on Feb 8 2024, 9:29 PM
Parents
rG0db66111d36a: Linux 6.8 compat: make test functions static
Branches
Unknown
Tags
Unknown