]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d77eaae8d6b037f1cbefccc6480cecd8213ea08
tree245f1e7e089739ffa8d182ae8d8c52f0d2211490
parenta868a1254008ef447bfc5fb259569cd0aab7bef1
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