Received: from eggs.gnu.org ([2001:4830:134:3::10]:42331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS9na-00020h-2S for qemu-devel@nongnu.org; Thu, 11 Sep 2014 15:12:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XS9nV-0002OU-0O for qemu-devel@nongnu.org; Thu, 11 Sep 2014 15:12:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XS9nU-0002O9-KA for qemu-devel@nongnu.org; Thu, 11 Sep 2014 15:12:48 -0400 From: Markus Armbruster References: <1410336832-22160-1-git-send-email-armbru@redhat.com> <1410336832-22160-11-git-send-email-armbru@redhat.com> <20140911170604.GA9475@irqsave.net> Date: Thu, 11 Sep 2014 21:12:44 +0200 In-Reply-To: <20140911170604.GA9475@irqsave.net> (=?utf-8?Q?=22Beno=C3=AEt?= Canet"'s message of "Thu, 11 Sep 2014 19:06:05 +0200") Message-ID: <874mwe7yz7.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 10/23] block: Eliminate DriveInfo member bdrv, use blk_by_legacy_dinfo() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Beno=C3=AEt?= Canet Cc: kwolf@redhat.com, famz@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Beno=C3=AEt Canet writes: >> + blk_bs(blk_by_legacy_dinfo(dinfo))); > > This seems to be a fairly common pattern: "blk_bs(blk_by_legacy_dinfo())". > How about a helper function ? Yes, except the pattern is going to evaporate in patch 14 :)