From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0uoJ-00036m-EM for qemu-devel@nongnu.org; Fri, 05 Jun 2015 12:49:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0uoI-00020T-66 for qemu-devel@nongnu.org; Fri, 05 Jun 2015 12:49:35 -0400 Message-ID: <5571D313.8020700@redhat.com> Date: Fri, 05 Jun 2015 18:49:23 +0200 From: Max Reitz MIME-Version: 1.0 References: <1433397777-6754-1-git-send-email-famz@redhat.com> <1433397777-6754-2-git-send-email-famz@redhat.com> In-Reply-To: <1433397777-6754-2-git-send-email-famz@redhat.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 1/2] vmdk: Fix index_in_cluster calculation in vmdk_co_get_block_status List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, qemu-block@nongnu.org On 04.06.2015 08:02, Fam Zheng wrote: > It has the similar issue with b1649fae49a8. Since the calculation > is repeated for a few times already, introduce a function so it can be > reused. > > Signed-off-by: Fam Zheng > --- > block/vmdk.c | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) Reviewed-by: Max Reitz