sr: simplify sr_block_revalidate_disk
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Sep 2020 14:53:46 +0000 (16:53 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 Sep 2020 15:32:31 +0000 (09:32 -0600)
commit38a2b557e23874dd5ed3c767d57d28b2d10b7683
tree245f1e7e089739ffa8d182ae8d8c52f0d2211490
parentafd35c4f573d7eb1df9dbb7e0af0f4d93bd01f31
sr: simplify sr_block_revalidate_disk

Both callers have a valid CD struture available, so rely on that instead
of getting another reference.  Also move the function to avoid a forward
declaration.

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/scsi/sr.c