Files
mirror_zfs/config
Coleman Kane d76de9fb17 Linux 6.5 compat: blkdev changes
Multiple changes to the blkdev API were introduced in Linux 6.5. This
includes passing (void* holder) to blkdev_put, adding a new
blk_holder_ops* arg to blkdev_get_by_path, adding a new blk_mode_t type
that replaces uses of fmode_t, and removing an argument from the release
handler on block_device_operations that we weren't using. The open
function definition has also changed to take gendisk* and blk_mode_t, so
update it accordingly, too.

Implement local wrappers for blkdev_get_by_path() and
vdev_blkdev_put() so that the in-line calls are cleaner, and place the
conditionally-compiled implementation details inside of both of these
local wrappers. Both calls are exclusively used within vdev_disk.c, at
this time.

Add blk_mode_is_open_write() to test FMODE_WRITE / BLK_OPEN_WRITE
The wrapper function is now used for testing using the appropriate
method for the kernel, whether the open mode is writable or not.

Emphasize fmode_t arg in zvol_release is not used

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #15099
2023-09-19 08:50:01 -07:00
..
2021-01-26 16:12:26 -08:00
2021-05-27 22:39:53 -07:00
2022-02-18 09:34:25 -08:00
2022-04-01 17:58:07 -07:00
2022-10-19 11:17:09 -07:00
2021-05-27 14:27:29 -06:00
2020-06-09 21:24:09 -07:00
2019-10-01 12:50:34 -07:00
2019-10-01 12:50:34 -07:00
2022-03-14 12:37:39 -07:00
2021-01-02 16:55:55 -08:00
2019-08-30 09:40:30 -07:00
2022-03-28 10:24:22 -07:00
2021-01-02 16:55:55 -08:00
2022-03-28 10:24:22 -07:00
2021-01-02 16:55:55 -08:00
2021-01-02 16:55:55 -08:00
2021-01-02 16:55:55 -08:00
2023-03-27 11:55:54 -07:00