Received: from eggs.gnu.org ([2001:4830:134:3::10]:59331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkZ4T-0000ZY-W3 for qemu-devel@nongnu.org; Fri, 09 Oct 2015 10:54:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkZ4T-0001Aq-8l for qemu-devel@nongnu.org; Fri, 09 Oct 2015 10:54:57 -0400 Date: Fri, 9 Oct 2015 15:54:45 +0100 From: Stefan Hajnoczi Message-ID: <20151009145445.GG24882@stefanha-thinkpad.redhat.com> References: <1443705214-9304-1-git-send-email-kwolf@redhat.com> <1443705214-9304-14-git-send-email-kwolf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1443705214-9304-14-git-send-email-kwolf@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 13/16] block: Implement bdrv_append() without bdrv_swap() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: berto@igalia.com, qemu-block@nongnu.org, jcody@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com, mreitz@redhat.com On Thu, Oct 01, 2015 at 03:13:31PM +0200, Kevin Wolf wrote: > +static void change_parent_backing_link(BlockDriverState *from, > + BlockDriverState *to) > +{ > + BdrvChild *c, *next; > + > + QLIST_FOREACH_SAFE(c, &from->parents, next_parent, next) { I find the name "c" confusing because it reminds me of children rather than the parents list. Perhaps "parent" would be clearer here.