Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp513096imu; Wed, 2 Jan 2019 10:54:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN4hHuJPHS4090B2XbT599sYGNGQ3BzjcEixRW1iVoY61ccBWzZMuQePbuKitySvwEXvFJaf X-Received: by 2002:a17:902:298a:: with SMTP id h10mr44839592plb.312.1546455292616; Wed, 02 Jan 2019 10:54:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546455292; cv=none; d=google.com; s=arc-20160816; b=ZFdwDoDr3HRx+v1Uds+H5XQ7DtvRVyio++p0I2sbIgWQJVjjggL0+Ts2mrDIXY3LI4 cFTYdLDyhk53shjlDzhhwP50GEFQnLQIkjbuxyDNsbaKvTikVb2YGA0/1ThM3/6OZzeX JFcyKxAczaHIfpAkJVeQt2CQvDhkn+uu+w3LnzDNVbfnTw9UUkUx+SrMjNRpGS3kOCGq nR+svZiokVQK/n3AZjfY6I2Ucl+N9Vb2YRS9QJ9AAObV1vURkiPTzv/kcZ+utCgjL6yV V1P11ueBB2i/dKP9hrEDhRzU/G0cT6hiOAaV2+W5djbOA7NkEGUET2uA5O0S+PzXIFwt AxdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=/AubiJ1Gsnki4nGwX/nRLoVyBXJ5ua94GIuBo+NNKME=; b=u36v5U1YnRo5wfNLyYH+d5LapXvXClXT5NY7EGiOwNj6XGprbfOnXbLSk8i9ZvVu3q 4VpZ+SlGFVWZM1LzbiuM8yNK6g1yMlSJU9wqzzNDcBP4RwZ8r8l5x2+svBc0FM3jIBLV 5u/tRdeiSSfTByzO+6nJy8mO+sJMioltmkonV6q6NkQJCRYOAjhubnHGZjiDcgF5OA8V 2zi9kM2xp9d4hagzfggHAz4ovi+9MSq+1VLBNVMmUJ1ihxAz2jaHLzumP1wwl/eg+219 yX0Ufez96JlWcfHtncSddV5AnTncgeLsu8U0sOsiPetEGovRVdsTBeBTn7bNMV1qiVOb D7eg== 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 z14si36990354pgz.180.2019.01.02.10.54.37; Wed, 02 Jan 2019 10:54:52 -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 S1730460AbfABQlU (ORCPT + 99 others); Wed, 2 Jan 2019 11:41:20 -0500 Received: from mx2.suse.de ([195.135.220.15]:43948 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729513AbfABQlU (ORCPT ); Wed, 2 Jan 2019 11:41:20 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6474FAD8A; Wed, 2 Jan 2019 16:41:18 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 7EB55DA781; Wed, 2 Jan 2019 17:40:48 +0100 (CET) Date: Wed, 2 Jan 2019 17:40:48 +0100 From: David Sterba To: Julia Lawall Cc: Chris Mason , kernel-janitors@vger.kernel.org, Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/20] Btrfs: drop useless LIST_HEAD Message-ID: <20190102164048.GZ23615@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Julia Lawall , Chris Mason , kernel-janitors@vger.kernel.org, Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org References: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> <1545555435-24576-12-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1545555435-24576-12-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 23, 2018 at 09:57:06AM +0100, Julia Lawall wrote: > 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 Added to patch queue, thanks. I've dropepd the Fixes: line as it's not really a fix that would need to go to stable. The original commit is mentioned in the changelog which is IMHO sufficient.