The main consumer of cluster-size is block-copy. Let's calculate it
here instead of passing through backup-top.
We are going to publish copy-before-write filter soon, so it will be
created through options. But we don't want for now to make explicit
option for cluster-size, let's continue to calculate it automatically.
So, now is the time to get rid of cluster_size argument for
bdrv_cbw_append().
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
block/copy-before-write.h | 1 -
include/block/block-copy.h | 5 ++--
block/backup.c | 58 ++++++--------------------------------
block/block-copy.c | 47 +++++++++++++++++++++++++++++-
block/copy-before-write.c | 10 +++----
5 files changed, 62 insertions(+), 59 deletions(-)