Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2828025imu; Sun, 23 Dec 2018 08:41:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/XAtPE99rr0j5rmgKm/8Eyuz5JVhUukY8kg1AUKh+qzW9P9mn5JBpIqLxhq4TmQHE8UF92b X-Received: by 2002:a24:2452:: with SMTP id f79mr7387679ita.143.1545583298050; Sun, 23 Dec 2018 08:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545583298; cv=none; d=google.com; s=arc-20160816; b=HXLDr+lFlhZ0aCqJS1VTFJ3Zk8NaqRK52Vc82HkI6/FEwhR3UZT2JLOZi5Nx/LkMwS ACHBQzi2xiHuaIxFJ2TaJJLyPHh7anLE0oICa3M0l0LRuXdd/ErOXLCY2u7UKQSYhHAm nQSN1WCAfIuR5ggeuV9EXWyy7LrLq3XEn+9MHvBuIE4wNdNOqQReDVENffa0uJkC9coQ RfY0VV9SSCQBKzK+lpYB50cYZntICJ5Nppsrnyh8TMdjuwyTASW96ZADfO8mjF/nq5p1 bSR8LjGsqo1zA4QbAUR7qRZvYKM9c7dZdSawLKOyDI3eJhY0mnRKZvy/aNE2gDz6yzj0 bKsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=d/EzX3/gsjXh5GMXX+Uil/2yvef/E07WhwpL/8yimNc=; b=btnodPHIflX0Phe+aEq0FkAUa1x+FLsI5fL0zvHMVBlz6VNVVV8r8D/yPsfUiBABoa 7HLqcAXmH83xUPj0Ua4TCdeIxngCBvWU7jqUOUHQ9RMqvrLOkowPRDI6SAyDAiKdsi72 uYlJXvnf13V/j4CmkP8nDFXKCwY5d/Lv3lbBJmLIw9sc4md46swvZmvk1XHI/KZviIQF q/nEqSkRMNSQmU6/vUOZLIyUchm7Spsnqd/Wf287lyqwL01QcMNKJWNuFfgJaHhmdSZq 22xLExuXobIs2RmfhOpvi7RMLmFiKWu2aAjclQVF1KRmmftTGcdcy5aq0+yJr+TPoe4g QwEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si8699299itc.0.2018.12.23.08.41.25; Sun, 23 Dec 2018 08:41:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727406AbeLWJeG (ORCPT + 99 others); Sun, 23 Dec 2018 04:34:06 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:44319 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727313AbeLWJeC (ORCPT ); Sun, 23 Dec 2018 04:34:02 -0500 X-IronPort-AV: E=Sophos;i="5.56,386,1539640800"; d="scan'208";a="289991776" Received: from palace.lip6.fr ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 23 Dec 2018 10:33:54 +0100 From: Julia Lawall To: Chris Mason Cc: kernel-janitors@vger.kernel.org, Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/20] Btrfs: drop useless LIST_HEAD Date: Sun, 23 Dec 2018 09:57:06 +0100 Message-Id: <1545555435-24576-12-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> References: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop LIST_HEAD where the variable it declares is never used. The uses were removed in 3fd0a5585eb9 ("Btrfs: Metadata ENOSPC handling for balance"), but not the declaration. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; @@ - LIST_HEAD(x); ... when != x // Fixes: 3fd0a5585eb9 ("Btrfs: Metadata ENOSPC handling for balance") Signed-off-by: Julia Lawall --- Successfully 0-day tested on 151 configurations. fs/btrfs/relocation.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 272b287f8cf0..de802ba35a34 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -2128,7 +2128,6 @@ static noinline_for_stack int merge_reloc_root(struct reloc_control *rc, struct btrfs_root *root) { struct btrfs_fs_info *fs_info = rc->extent_root->fs_info; - LIST_HEAD(inode_list); struct btrfs_key key; struct btrfs_key next_key; struct btrfs_trans_handle *trans = NULL;