On 2017-07-07 16:30, Pavel Butsykin wrote: > Whenever l2/refcount table clusters are discarded from the file we can > automatically drop unnecessary content of the cache tables. This reduces > the chance of eviction useful cache data and eliminates inconsistent data > in the cache with the data in the file. > > Signed-off-by: Pavel Butsykin > --- > block/qcow2-cache.c | 26 ++++++++++++++++++++++++++ > block/qcow2-refcount.c | 14 ++++++++++++++ > block/qcow2.h | 3 +++ > 3 files changed, 43 insertions(+) Reviewed-by: Max Reitz