summaryrefslogtreecommitdiff
path: root/include/linux/pktcdvd.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-09-27 12:34:11 +0300
committerChristian Brauner <brauner@kernel.org>2023-10-28 14:29:17 +0300
commit7ac86df899f0025cfd554c057efb30e5a4ef95b0 (patch)
tree7209c07b4fd91d07e23d391ab6b7b20756f7306b /include/linux/pktcdvd.h
parent75e27d373425c349954c3770bee659a1bbdb3cc0 (diff)
downloadlinux-7ac86df899f0025cfd554c057efb30e5a4ef95b0.tar.xz
pktcdvd: Convert to bdev_open_by_dev()
Convert pktcdvd to use bdev_open_by_dev(). Acked-by: Christoph Hellwig <hch@lst.de> Acked-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20230927093442.25915-5-jack@suse.cz Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/pktcdvd.h')
-rw-r--r--include/linux/pktcdvd.h4
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;