diff options
| author | Jan Kara <[email protected]> | 2023-09-27 11:34:11 +0200 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2023-10-28 13:29:17 +0200 |
| commit | 7ac86df899f0025cfd554c057efb30e5a4ef95b0 (patch) | |
| tree | 7209c07b4fd91d07e23d391ab6b7b20756f7306b /include | |
| parent | 75e27d373425c349954c3770bee659a1bbdb3cc0 (diff) | |
pktcdvd: Convert to bdev_open_by_dev()
Convert pktcdvd to use bdev_open_by_dev().
Acked-by: Christoph Hellwig <[email protected]>
Acked-by: Christian Brauner <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/pktcdvd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/pktcdvd.h b/include/linux/pktcdvd.h index 80cb00db42a4..79594aeb160d 100644 --- a/include/linux/pktcdvd.h +++ b/include/linux/pktcdvd.h @@ -154,7 +154,9 @@ struct packet_stacked_data struct pktcdvd_device { - struct block_device *bdev; /* dev attached */ + struct bdev_handle *bdev_handle; /* dev attached */ + /* handle acquired for bdev during pkt_open_dev() */ + struct bdev_handle *open_bdev_handle; dev_t pkt_dev; /* our dev */ struct packet_settings settings; struct packet_stats stats; |