diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-02-23 16:40:52 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-02-23 13:23:29 -0600 |
commit | 05121aedc41f87e44e41e9cef55f2e49ce7ba94e (patch) | |
tree | 1d42043cc823aa09aa36218e51157527f5457157 /block/vdi.c | |
parent | 1d9000e8238ffc346b0a08f4c0619c4e5711a7dc (diff) |
qcow2: Factor next_refcount_table_size out
When the refcount table grows, it doesn't only grow by one entry but reserves
some space for future refcount blocks. The algorithm to calculate the number of
entries stays the same with the fixes, so factor it out before replacing the
rest.
As Juan suggested take the opportunity to simplify the code a bit.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block/vdi.c')
0 files changed, 0 insertions, 0 deletions