qcow/qcow2: Use DIV_ROUND_UP
commitd737b78cc13d2ab94ffa4478da59931165cb1f4e
authorLaurent Vivier <lvivier@redhat.com>
Tue, 31 May 2016 16:35:52 +0000 (31 18:35 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 7 Jun 2016 15:19:24 +0000 (7 18:19 +0300)
tree62020c57b1ee6778cbdf9f2b4e7e343e49578c1b
parent969401fe769264239c0f3e928283433b58910a19
qcow/qcow2: Use DIV_ROUND_UP

Replace (((n) + (d) - 1) /(d)) by DIV_ROUND_UP(n,d).

This patch is the result of coccinelle script
scripts/coccinelle/round.cocci

CC: qemu-block@nongnu.org
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
block/qcow.c
block/qcow2-cluster.c
block/qcow2-refcount.c