swim: simplify media change handling
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Sep 2020 14:53:34 +0000 (16:53 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 Sep 2020 15:32:30 +0000 (09:32 -0600)
commit433d21ce313e93200cd0938aa717639c8098d45f
tree5a809510e149d53c5b58b1f470461cc4e1e3288d
parent7fe76fc04bd1b551b8c712249c921facfd98a11b
swim: simplify media change handling

floppy_revalidate mostly duplicates work already done in floppy_open
despite only beeing called from floppy_open.  Remove the function and
just clear the ->ejected flag directly under the right condition.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/swim.c