> > 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