diff options
author | Christoph Hellwig <hch@lst.de> | 2023-06-08 13:02:35 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-12 16:04:03 +0200 |
commit | 444aa2c58cb3b6cfe3b7cc7db6c294d73393a894 (patch) | |
tree | 250825e269bcdb6c4ed561ea581be0587f4497df /drivers/cdrom/gdrom.c | |
parent | cdrom: remove the unused mode argument to cdrom_release (diff) | |
download | linux-444aa2c58cb3b6cfe3b7cc7db6c294d73393a894.tar.xz linux-444aa2c58cb3b6cfe3b7cc7db6c294d73393a894.zip |
block: pass a gendisk on bdev_check_media_change
bdev_check_media_change should only ever be called for the whole device.
Pass a gendisk to make that explicit and rename the function to
disk_check_media_change.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Christian Brauner <brauner@kernel.org>
Link: https://lore.kernel.org/r/20230608110258.189493-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/cdrom/gdrom.c')
-rw-r--r-- | drivers/cdrom/gdrom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c index a401dc4218a9..3cb92df38ebe 100644 --- a/drivers/cdrom/gdrom.c +++ b/drivers/cdrom/gdrom.c @@ -478,7 +478,7 @@ static int gdrom_bdops_open(struct block_device *bdev, fmode_t mode) { int ret; - bdev_check_media_change(bdev); + disk_check_media_change(bdev->bd_disk); mutex_lock(&gdrom_mutex); ret = cdrom_open(gd.cd_info); |