floppy: call disk_force_media_change when changing the format
authorChristoph Hellwig <hch@lst.de>
Fri, 11 Aug 2023 10:08:20 +0000 (12:08 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 21 Aug 2023 12:35:31 +0000 (14:35 +0200)
commita47145f2361976c83bb7d3198e7ff0e13a29fb7e
treed1dc6754971075486c4f140d01f65ebec1b170ea
parentab6860f62bfe329e11e5b5b7295b673c9c3a62d0
floppy: call disk_force_media_change when changing the format

While changing the format of a floppy isn't strictly speaking a media
change, the effects are the same in that the content of the media
changes and the diskseq should be increased and uevent should be
sent.  Switch from calling __invalidate_device to
disk_force_media_change to do so.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Message-Id: <20230811100828.1897174-10-hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
drivers/block/floppy.c