Coleman Kane
7c0618bdb7
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-11 16:20:26 -07:00
..
2018-05-29 14:51:39 -07:00
2021-09-14 15:38:55 -07:00
2020-04-14 11:36:28 -07:00
2023-06-05 18:25:57 -07:00
2021-01-26 16:12:26 -08:00
2022-09-14 11:23:25 -07:00
2023-04-13 15:59:45 -07:00
2023-04-13 15:59:45 -07:00
2020-12-03 10:01:16 -08:00
2021-06-09 13:05:34 -07:00
2019-09-05 09:34:54 -07:00
2020-08-20 10:30:06 -07:00
2021-01-26 16:12:26 -08:00
2023-01-19 12:50:42 -08:00
2019-03-02 16:19:05 -08:00
2019-03-02 16:19:05 -08:00
2018-05-29 14:51:39 -07:00
2020-07-10 14:26:12 -07:00
2021-04-07 13:27:11 -07:00
2023-01-19 12:50:42 -08:00
2020-09-04 11:11:18 -07:00
2019-04-19 12:09:29 -07:00
2019-04-19 12:09:29 -07:00
2020-06-22 09:46:37 -07:00
2019-04-19 12:09:29 -07:00
2019-10-01 12:50:34 -07:00
2023-06-05 10:59:02 -07:00
2022-12-01 12:39:44 -08:00
2019-10-01 12:50:34 -07:00
2019-11-12 08:59:06 -08:00
2021-05-28 09:01:24 -07:00
2021-03-19 22:33:42 -07:00
2022-06-01 14:24:49 -07:00
2022-07-27 13:38:56 -07:00
2023-09-11 16:20:26 -07:00
2023-09-11 16:20:26 -07:00
2019-10-01 12:50:34 -07:00
2019-11-12 08:59:06 -08:00
2022-05-20 10:33:24 -07:00
2022-05-20 10:33:24 -07:00
2023-06-05 10:59:02 -07:00
2019-10-01 12:50:34 -07:00
2019-10-01 12:50:34 -07:00
2022-12-01 12:39:42 -08:00
2019-11-18 13:05:56 -08:00
2019-10-01 12:50:34 -07:00
2019-11-12 08:59:06 -08:00
2019-10-01 12:50:34 -07:00
2019-11-12 08:59:06 -08:00
2022-02-04 08:33:52 -08:00
2019-10-01 12:50:34 -07:00
2019-10-01 12:50:34 -07:00
2023-06-05 10:59:02 -07:00
2023-06-05 10:59:02 -07:00
2019-11-12 08:59:06 -08:00
2019-11-12 08:59:06 -08:00
2022-06-01 14:24:49 -07:00
2019-11-12 08:59:06 -08:00
2019-11-12 08:59:06 -08:00
2023-06-05 10:59:02 -07:00
2023-03-28 08:16:46 -07:00
2019-10-01 12:50:34 -07:00
2022-04-20 13:44:19 -07:00
2022-07-27 13:38:56 -07:00
2019-10-01 12:50:34 -07:00
2023-01-19 12:50:25 -08:00
2022-05-20 10:33:24 -07:00
2020-12-10 14:09:23 -08:00
2019-10-01 12:50:34 -07:00
2023-06-05 10:59:02 -07:00
2023-06-05 10:59:02 -07:00
2019-10-01 12:50:34 -07:00
2019-11-12 08:59:06 -08:00
2019-10-01 12:50:34 -07:00
2019-10-01 12:50:34 -07:00
2023-06-05 10:59:02 -07:00
2020-05-04 15:25:48 -07:00
2019-11-12 08:59:06 -08:00
2023-06-05 10:59:02 -07:00
2019-11-12 08:59:06 -08:00
2019-11-12 08:59:06 -08:00
2022-02-04 08:33:52 -08:00
2019-11-12 08:59:06 -08:00
2022-02-04 08:33:52 -08:00
2020-02-27 09:30:45 -08:00
2019-11-12 08:59:06 -08:00
2019-11-12 08:59:06 -08:00
2019-10-01 12:50:34 -07:00
2022-08-09 09:41:06 -07:00
2019-10-01 12:50:34 -07:00
2023-06-05 10:59:02 -07:00
2023-06-05 10:59:02 -07:00
2020-11-02 22:01:10 +00:00
2022-06-01 14:24:49 -07:00
2022-02-04 08:33:52 -08:00
2021-06-09 13:05:34 -07:00
2020-02-07 11:03:53 -08:00
2020-06-09 21:24:09 -07:00
2022-06-01 14:24:49 -07:00
2023-06-05 10:59:02 -07:00
2023-09-11 15:18:05 -07:00
2023-06-05 10:59:02 -07:00
2022-04-06 13:15:27 -07:00
2019-10-01 12:50:34 -07:00
2020-12-09 21:22:54 -08:00
2019-11-12 08:59:06 -08:00
2019-11-12 08:59:06 -08:00
2019-11-12 08:59:06 -08:00
2023-06-05 10:59:02 -07:00
2019-11-12 08:59:06 -08:00
2019-11-12 08:59:06 -08:00
2022-08-09 09:41:06 -07:00
2021-04-19 15:12:33 -07:00
2021-04-19 15:12:33 -07:00
2021-04-19 15:12:33 -07:00
2021-09-14 15:42:01 -07:00
2019-10-01 12:50:34 -07:00
2023-06-05 10:59:02 -07:00
2022-06-01 14:24:49 -07:00
2019-10-01 12:50:34 -07:00
2023-06-05 10:59:02 -07:00
2019-10-01 12:50:34 -07:00
2019-10-01 12:50:34 -07:00
2019-11-12 08:59:06 -08:00
2020-07-19 09:56:21 -07:00
2019-11-12 08:59:06 -08:00
2019-10-01 12:50:34 -07:00
2022-06-01 14:24:49 -07:00
2019-11-12 08:59:06 -08:00
2019-10-01 12:50:34 -07:00
2022-06-01 14:24:49 -07:00
2019-10-01 12:50:34 -07:00
2022-06-01 14:24:49 -07:00
2019-10-01 12:50:34 -07:00
2022-06-01 14:24:49 -07:00
2019-10-01 12:50:34 -07:00
2023-06-05 10:59:02 -07:00
2023-06-05 10:59:02 -07:00
2022-05-20 10:33:24 -07:00
2019-11-12 08:59:06 -08:00
2023-09-11 15:18:05 -07:00
2019-04-19 12:09:29 -07:00
2020-06-22 09:46:37 -07:00
2020-06-22 09:46:37 -07:00
2021-01-02 16:55:55 -08:00
2019-04-19 12:09:29 -07:00
2019-08-30 09:40:30 -07:00
2019-04-19 12:09:29 -07:00
2019-04-19 12:09:29 -07:00
2020-09-12 08:22:07 -07:00
2021-11-02 09:50:30 -07:00
2021-06-09 13:05:34 -07:00
2022-02-16 17:58:37 -08:00
2020-07-14 17:32:21 -07:00
2022-02-16 17:58:55 -08:00
2020-07-10 14:26:00 -07:00
2021-01-02 16:55:55 -08:00
2020-07-10 14:26:12 -07:00
2020-07-10 14:26:40 -07:00
2021-09-14 12:38:51 -07:00
2020-07-10 14:26:40 -07:00
2020-07-10 14:26:40 -07:00
2021-01-02 16:55:55 -08:00
2022-02-16 17:58:55 -08:00
2020-07-10 14:26:40 -07:00
2020-07-10 14:26:40 -07:00
2020-07-10 14:26:40 -07:00
2021-01-02 16:55:55 -08:00
2020-07-30 09:09:46 -07:00
2014-03-31 16:11:13 -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
2020-07-10 14:26:40 -07:00
2022-02-16 17:58:37 -08:00
2023-06-05 18:25:57 -07:00
2022-02-16 17:58:55 -08:00