Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio-blk: remove a spurious call to revalidate_disk_size

revalidate_disk_size just updates the block device size from the disk
size. Thus calling it from virtblk_update_cache_mode doesn't actually
do anything.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
ddff331a 94d91e7f

-1
-1
drivers/block/virtio_blk.c
··· 598 598 struct virtio_blk *vblk = vdev->priv; 599 599 600 600 blk_queue_write_cache(vblk->disk->queue, writeback, false); 601 - revalidate_disk_size(vblk->disk, true); 602 601 } 603 602 604 603 static const char *const virtblk_cache_types[] = {