From patchwork Mon Nov 4 21:34:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentina Giusti X-Patchwork-Id: 3137941 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 493A99F407 for ; Mon, 4 Nov 2013 21:37:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 85FC6205C6 for ; Mon, 4 Nov 2013 21:37:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC1A3205AC for ; Mon, 4 Nov 2013 21:37:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752841Ab3KDVhC (ORCPT ); Mon, 4 Nov 2013 16:37:02 -0500 Received: from mail.microon.de ([37.252.125.21]:37986 "EHLO gattino.microon.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751155Ab3KDVg7 (ORCPT ); Mon, 4 Nov 2013 16:36:59 -0500 Received: from tindwyl.labs.pbs.com (ulmg-4d022145.pool.mediaWays.net [77.2.33.69]) by gattino.microon.de (Postfix) with ESMTPSA id EFAC241E9C; Mon, 4 Nov 2013 22:36:56 +0100 (CET) From: Valentina Giusti To: chris.mason@fusionio.com Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 4/9] btrfs: remove unused variable from find_free_extent Date: Mon, 4 Nov 2013 22:34:24 +0100 Message-Id: <1383600869-10085-5-git-send-email-valentina.giusti@microon.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1383600869-10085-1-git-send-email-valentina.giusti@microon.de> References: <1383600869-10085-1-git-send-email-valentina.giusti@microon.de> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The variable found_uncached_bg in find_free_extent is not used since commit 285ff5af6ce358e73f53b55c9efadd4335f4c2ff (Btrfs: remove the ideal caching code) Signed-off-by: Valentina Giusti --- fs/btrfs/extent-tree.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index d58bef1..a6e2e33 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -6131,7 +6131,6 @@ static noinline int find_free_extent(struct btrfs_root *orig_root, int index = __get_raid_index(flags); int alloc_type = (flags & BTRFS_BLOCK_GROUP_DATA) ? RESERVE_ALLOC_NO_ACCOUNT : RESERVE_ALLOC; - bool found_uncached_bg = false; bool failed_cluster_refill = false; bool failed_alloc = false; bool use_cluster = true; @@ -6249,7 +6248,6 @@ search: have_block_group: cached = block_group_cache_done(block_group); if (unlikely(!cached)) { - found_uncached_bg = true; ret = cache_block_group(block_group, 0); BUG_ON(ret < 0); ret = 0;