Skip to content

Commit

Permalink
gdrom: use bdev_check_media_change
Browse files Browse the repository at this point in the history
The Sega GD-ROM driver does not have a ->revalidate_disk method, so it
can just use bdev_check_media_change without any additional changes.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Christoph Hellwig authored and axboe committed Sep 10, 2020
1 parent 1570d14 commit faf0413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cdrom/gdrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ static int gdrom_bdops_open(struct block_device *bdev, fmode_t mode)
{
int ret;

check_disk_change(bdev);
bdev_check_media_change(bdev);

mutex_lock(&gdrom_mutex);
ret = cdrom_open(gd.cd_info, bdev, mode);
Expand Down

0 comments on commit faf0413

Please sign in to comment.