]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6cfb8c600627bfca809cc88597a2a525bb50648
tree5a809510e149d53c5b58b1f470461cc4e1e3288d
parent328c751b4aa9b112a548a9d14614a5a483e424a8
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