qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 2/4] qcow2: Don't round the L1 table allocation up to the


From: Max Reitz
Subject: Re: [PATCH v2 2/4] qcow2: Don't round the L1 table allocation up to the sector size
Date: Tue, 14 Jan 2020 14:46:01 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1

On 09.01.20 20:13, Alberto Garcia wrote:
> The L1 table is read from disk using the byte-based bdrv_pread() and
> is never accessed beyond its last element, so there's no need to
> allocate more memory than that.
> 
> Signed-off-by: Alberto Garcia <address@hidden>
> ---
>  block/qcow2-cluster.c  | 5 ++---
>  block/qcow2-refcount.c | 2 +-
>  block/qcow2-snapshot.c | 3 +--
>  block/qcow2.c          | 2 +-
>  4 files changed, 5 insertions(+), 7 deletions(-)

Reviewed-by: Max Reitz <address@hidden>

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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