Received: from eggs.gnu.org ([2001:4830:134:3::10]:40688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnqaI-0001UN-6c for qemu-devel@nongnu.org; Fri, 23 May 2014 10:36:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnqaA-00060y-FR for qemu-devel@nongnu.org; Fri, 23 May 2014 10:36:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnqaA-00060c-7O for qemu-devel@nongnu.org; Fri, 23 May 2014 10:36:26 -0400 Date: Fri, 23 May 2014 10:36:20 -0400 From: Jeff Cody Message-ID: <20140523143620.GB5795@localhost.localdomain> References: <1400851788-32588-1-git-send-email-famz@redhat.com> <1400851788-32588-9-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1400851788-32588-9-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 8/8] block: Drop redundant bdrv_refresh_limits List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , Benoit Canet , qemu-devel@nongnu.org, Max Reitz , Stefan Hajnoczi , Paolo Bonzini On Fri, May 23, 2014 at 09:29:48PM +0800, Fam Zheng wrote: > The above bdrv_set_backing_hd already does this. > > Signed-off-by: Fam Zheng > --- > block.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/block.c b/block.c > index aa9b5ab..a517d72 100644 > --- a/block.c > +++ b/block.c > @@ -1182,9 +1182,6 @@ int bdrv_open_backing_file(BlockDriverState *bs, QDict *options, Error **errp) > } > bdrv_set_backing_hd(bs, backing_hd); > > - /* Recalculate the BlockLimits with the backing file */ > - bdrv_refresh_limits(bs); > - > free_exit: > g_free(backing_filename); > return ret; > -- > 1.9.2 > I think there is another redundant one in block/stream.c, in close_unused_images(). But that doesn't affect this patch: Reviewed-by: Jeff Cody