From patchwork Fri May 23 15:41:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 351926 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 8EF8D140076 for ; Sat, 24 May 2014 01:48:29 +1000 (EST) Received: from localhost ([::1]:44300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wnrhr-0005M1-Bo for incoming@patchwork.ozlabs.org; Fri, 23 May 2014 11:48:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnrcU-0005nR-3x for qemu-devel@nongnu.org; Fri, 23 May 2014 11:43:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnrcM-0006HN-JV for qemu-devel@nongnu.org; Fri, 23 May 2014 11:42:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnrcM-0006HA-C4 for qemu-devel@nongnu.org; Fri, 23 May 2014 11:42:46 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4NFgiwU009600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 23 May 2014 11:42:44 -0400 Received: from localhost (ovpn-112-43.ams2.redhat.com [10.36.112.43]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s4NFghP0021377; Fri, 23 May 2014 11:42:44 -0400 From: Stefan Hajnoczi To: Date: Fri, 23 May 2014 17:41:45 +0200 Message-Id: <1400859725-31879-14-git-send-email-stefanha@redhat.com> In-Reply-To: <1400859725-31879-1-git-send-email-stefanha@redhat.com> References: <1400859725-31879-1-git-send-email-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Peter Maydell , Fam Zheng , Stefan Hajnoczi Subject: [Qemu-devel] [PULL 13/33] block: Drop redundant bdrv_refresh_limits X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Fam Zheng The above bdrv_set_backing_hd already does this. Signed-off-by: Fam Zheng Reviewed-by: Jeff Cody Signed-off-by: Stefan Hajnoczi --- 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;