]> 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 22:53:29 +0000 (14:53 -0800)
commitce782d080432506a41b49df32af6f0013b5775db
treeb8cbb4e00a06151e19406664ad53997bcc7746de
parent64afc4e66edf6a740f1c7ab808a452e42d964eb7
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