On 24.05.21 16:20, Vladimir Sementsov-Ogievskiy wrote:
Add helper to parse compressed l2_entry and use it everywhere instead
of open-coding.

Note, that in most places we move to precise coffset/csize instead of
sector-aligned. Still it should work good enough for updating
refcounts.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>
Reviewed-by: Eric Blake <ebl...@redhat.com>
---
  block/qcow2.h          |  3 ++-
  block/qcow2-cluster.c  | 15 +++++++++++++++
  block/qcow2-refcount.c | 36 +++++++++++++++++-------------------
  block/qcow2.c          |  9 ++-------
  4 files changed, 36 insertions(+), 27 deletions(-)

Reviewed-by: Hanna Reitz <hre...@redhat.com>


Reply via email to