block: use revalidate_disk_size in set_capacity_revalidate_and_notify
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Sep 2020 15:57:44 +0000 (17:57 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Sep 2020 14:00:07 +0000 (08:00 -0600)
commitb8086d3f5a0e88b1912d55a158b8a6a43ad6604b
tree4fbd9e3b72eb27a2d0da06e57a57cfb9290e72b3
parent659e56ba864d37b7ee0a49cd432205b2a5ca815e
block: use revalidate_disk_size in set_capacity_revalidate_and_notify

Only virtio_blk and xen-blkfront set the revalidate argument to true,
and both do not implement the ->revalidate_disk method.  So switch
to the helper that just updates the size instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
include/linux/genhd.h