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

Hannes Reinecke
2023-06-07T12:15:36Z

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@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 <hare@suse.de>

Cheers,

Hannes