qcow2: Resize the cache upon image resizing
commit45b4949c7bcdcd998cb42f5c517e80a2657cfd33
authorLeonid Bloch <lbloch@janustech.com>
Wed, 26 Sep 2018 16:04:45 +0000 (26 19:04 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 1 Oct 2018 10:51:12 +0000 (1 12:51 +0200)
tree04187b3911cf83c1b5751022ffcaca1e4c1d2105
parent80668d0fb735f0839a46278a7d42116089b82816
qcow2: Resize the cache upon image resizing

The caches are now recalculated upon image resizing. This is done
because the new default behavior of assigning L2 cache relatively to
the image size, implies that the cache will be adapted accordingly
after an image resize.

Signed-off-by: Leonid Bloch <lbloch@janustech.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c