qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 03/10] qcow2: introduce qcow2_parse_compressed_l2_entry()


From: Hanna Reitz
Subject: Re: [PATCH v3 03/10] qcow2: introduce qcow2_parse_compressed_l2_entry() helper
Date: Mon, 13 Sep 2021 17:41:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

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 <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@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 <hreitz@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]