block: add a bdev_check_media_change helper
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Sep 2020 14:53:29 +0000 (16:53 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 Sep 2020 15:32:30 +0000 (09:32 -0600)
commit95f6f3a46fc4ee1a2b216a6b46bdf2b450f1877f
tree4ecb01f17029bcdc4364a96c21e10adda36161b2
parentfc93fe145316dad6186d8eb4b4f49f68b1cba0c3
block: add a bdev_check_media_change helper

Like check_disk_changed, except that it does not call ->revalidate_disk
but leaves that to the caller.

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>
block/genhd.c
fs/block_dev.c
include/linux/genhd.h