Re: [Qemu-devel] [PATCH] mirror: Use DIV_ROUND_UP

2014-04-28 Thread Kevin Wolf
Am 28.04.2014 um 04:59 hat Fam Zheng geschrieben: Although bdrv_getlength() was just called above this, and checked for error, it is better to just use the value we already get, and use DIV_ROUND_UP. Signed-off-by: Fam Zheng f...@redhat.com The subject line is kind of hiding the real

[Qemu-devel] [PATCH] mirror: Use DIV_ROUND_UP

2014-04-27 Thread Fam Zheng
Although bdrv_getlength() was just called above this, and checked for error, it is better to just use the value we already get, and use DIV_ROUND_UP. Signed-off-by: Fam Zheng f...@redhat.com --- block/mirror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/mirror.c