qcow2: use DIV_ROUND_UP
commit21cf3e120191eb1302da2bbfc6c41239e0d84db7
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 22 Jun 2017 11:04:16 +0000 (22 13:04 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 31 Aug 2017 10:29:07 +0000 (31 12:29 +0200)
tree2ada62965407f8bbeea5e3811e2250864c66db83
parent6fb0022b48c6f646f5bd5178152efe7e2398dd41
qcow2: use DIV_ROUND_UP

I used the clang-tidy qemu-round check to generate the fix:
https://github.com/elmarco/clang-tools-extra

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
block/qcow2-cluster.c