Commit 2c0326c5 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Christian Brauner
Browse files

amiflop: don't call fsync_bdev in FDFMTBEG



FDFMTBEG is used by fdformat to calibrate before formatting a disk.
Neither the atari nor PC floppy driver sync data, which also seems
a bit pointless for a disk hat is about to get formatted.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Message-Id: <20230811100828.1897174-11-hch@lst.de>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent a47145f2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1547,7 +1547,6 @@ static int fd_locked_ioctl(struct block_device *bdev, blk_mode_t mode,
			rel_fdc();
			return -EBUSY;
		}
		fsync_bdev(bdev);
		if (fd_motor_on(drive) == 0) {
			rel_fdc();
			return -ENODEV;