From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7nLo-0000g9-SM for qemu-devel@nongnu.org; Tue, 31 May 2016 13:21:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7nLm-0007Ji-Po for qemu-devel@nongnu.org; Tue, 31 May 2016 13:21:07 -0400 References: <1464712565-14857-1-git-send-email-lvivier@redhat.com> <1464712565-14857-4-git-send-email-lvivier@redhat.com> From: Eric Blake Message-ID: <574DC7F7.1030905@redhat.com> Date: Tue, 31 May 2016 11:20:55 -0600 MIME-Version: 1.0 In-Reply-To: <1464712565-14857-4-git-send-email-lvivier@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vjI6QOTSfLoEoQ69Hk2crkpXgTMTMGaws" Subject: Re: [Qemu-devel] [PATCH 03/16] qcow/qcow2: Use DIV_ROUND_UP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , qemu-trivial@nongnu.org, qemu-devel@nongnu.org Cc: qemu-block@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --vjI6QOTSfLoEoQ69Hk2crkpXgTMTMGaws Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 05/31/2016 10:35 AM, Laurent Vivier wrote: > Replace (((n) + (d) - 1) /(d)) by DIV_ROUND_UP(n,d). >=20 > This patch is the result of coccinelle script > scripts/coccinelle/round.cocci >=20 > CC: qemu-block@nongnu.org > Signed-off-by: Laurent Vivier > --- > block/qcow.c | 4 ++-- > block/qcow2-cluster.c | 4 ++-- > block/qcow2-refcount.c | 6 ++---- > 3 files changed, 6 insertions(+), 8 deletions(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --vjI6QOTSfLoEoQ69Hk2crkpXgTMTMGaws Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXTcf3AAoJEKeha0olJ0NqL+0IAIlXbolTLeLaisB6Bb61Kni9 wt+8h3voRlTMea23aHZsbcqrUBjHAJYRusvpu83IASZT19OFpY959Z1jHduM7jaT XSVtykT2RkGjN07sWO4yJmNsDHVDtjQ05bDjeGmK6TYjN9KkhU2sQPmVJHE+dpyr 0TXOpiComv7iMnHx54MD6cbc7HAIEPkx2E+M6WQ6SOjhkrXSRiSSypbiTw8GSvmL qamvjznoqEBO9AR3ZA/v7JUnAc5VnUifMtlSxm/AWGD+JvCHnm63hk98JnV68dXH A3F6gYomZrvTsH5mgC9EOJafAeIwX3rSMV2PdYnnlkZBFIdPoyeJEHgrMIfR66k= =lW5X -----END PGP SIGNATURE----- --vjI6QOTSfLoEoQ69Hk2crkpXgTMTMGaws--