Re: [PATCH 07/31] block: pass a gendisk on bdev_check_media_change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <hch@xxxxxx>
---
  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 <hare@xxxxxxx>

Cheers,

Hannes




[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux