On 6/6/23 09:39, Christoph Hellwig wrote:
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 <h...@lst.de>
---
  block/disk-events.c     | 18 +++++++++---------
  drivers/block/amiflop.c |  2 +-
  drivers/block/ataflop.c |  6 +++---
  drivers/block/floppy.c  | 16 ++++++++--------
  drivers/block/swim.c    |  2 +-
  drivers/block/swim3.c   |  2 +-
  drivers/cdrom/gdrom.c   |  2 +-
  drivers/md/md.c         |  2 +-
  drivers/scsi/sd.c       |  9 ++++-----
  drivers/scsi/sr.c       |  2 +-
  include/linux/blkdev.h  |  2 +-
  11 files changed, 31 insertions(+), 32 deletions(-)

Reviewed-by: Hannes Reinecke <h...@suse.de>

Cheers,

Hannes

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel

Reply via email to