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 RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux