Skip to content

Commit a47145f

Browse files
Christoph Hellwigbrauner
authored andcommitted
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>
1 parent ab6860f commit a47145f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/block/floppy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3255,7 +3255,7 @@ static int set_geometry(unsigned int cmd, struct floppy_struct *g,
32553255

32563256
if (!disk || ITYPE(drive_state[cnt].fd_device) != type)
32573257
continue;
3258-
__invalidate_device(disk->part0, true);
3258+
disk_force_media_change(disk);
32593259
}
32603260
mutex_unlock(&open_lock);
32613261
} else {

0 commit comments

Comments
 (0)