]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 6.8 compat: update for new bdev access functions
authorRob Norris <robn@despairlabs.com>
Tue, 23 Jan 2024 04:42:57 +0000 (15:42 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 29 Jan 2024 19:36:07 +0000 (11:36 -0800)
commit386d6a7533fd2ebe4a44d647992669f3a1de5dda
treed5e8e249f50a74e4a3669b19f70494b68c8e3fc5
parenta41d0b29a9b31b2b257785071cac4acca4efdc19
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
config/kernel-blkdev.m4
module/os/linux/zfs/vdev_disk.c