qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC V6 31/33] qcow: Set large dedup hash block size.


From: Benoît Canet
Subject: Re: [Qemu-devel] [RFC V6 31/33] qcow: Set large dedup hash block size.
Date: Wed, 27 Feb 2013 15:53:43 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

> >              inc_refcounts(bs, res, refcount_table, refcount_table_size,
> > -                l2_offset, s->cluster_size);
> > +                l2_offset, dedup ? s->hash_block_size : s->l2_size << 3);
> 
> Why s->l2_size << 3 instead of s->cluster_size for the non-dedup case?

I wrote it like this so the code would work fine is l2_size is different of
cluster size. It is almost a bugfix.

Regards

Benoît



reply via email to

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