xsysace: simplify media change handling
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Sep 2020 14:53:37 +0000 (16:53 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 Sep 2020 15:32:31 +0000 (09:32 -0600)
commit77f93bfd0cc2e659d7135b4afcd5d0a070515bbf
treeec854d02df76c7701a4bec219a13361467600841
parentf094225bfcd6fc5c093e128ec0adb7a522b38b69
xsysace: simplify media change handling

Pass a struct ace_device to ace_revalidate_disk, move the media changed
check into the one caller that needs it, and give the routine a better
name.

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/xsysace.c