Received: from eggs.gnu.org ([2001:4830:134:3::10]:38231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecCLx-00069k-9y for qemu-devel@nongnu.org; Thu, 18 Jan 2018 10:43:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecCLu-0003tC-7u for qemu-devel@nongnu.org; Thu, 18 Jan 2018 10:43:45 -0500 From: Alberto Garcia In-Reply-To: References: <192f0a4a1888e7e18cb7cec9fdbeadad5417b4ef.1513342045.git.berto@igalia.com> Date: Thu, 18 Jan 2018 16:43:39 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 24/32] qcow2: Update qcow2_update_snapshot_refcount() to support L2 slices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: Kevin Wolf , "Denis V . Lunev" , qemu-block@nongnu.org, Max Reitz On Wed 17 Jan 2018 12:00:59 AM CET, Eric Blake wrote: >> - l2_table = NULL; >> + l2_slice = NULL; >> l1_table = NULL; >> l1_size2 = l1_size * sizeof(uint64_t); >> >> + slice_size = s->l2_slice_size * sizeof(uint64_t); > > Again, better naming on s->l2_slice_size in an earlier patch may make > this more readable, at a cost of slight rebase churn. Another approach would be to use _size2 to refer to size in bytes, after checking the code a bit that seems to be the convention in other places where we're dealing with both table lenghts and sizes in bytes. > The diff looks hideous, but that's thanks to indentation changes. Right, that's why I suggested to use 'diff -w' in the cover letter to help see the changes better. Berto