Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3060108imu; Sun, 23 Dec 2018 14:55:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/W43L24g+osR8ruYfMJvXBy1UnEu70aZ8hKhkC+4Bf8f8bc/mVeMKRPWNEstWBToZRE3Z6S X-Received: by 2002:a62:28c9:: with SMTP id o192mr11269097pfo.57.1545605706173; Sun, 23 Dec 2018 14:55:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545605706; cv=none; d=google.com; s=arc-20160816; b=plK74PgbSWNj/tRZeE4C2cTTlhS5sStX4nnFf6Ab7emVJ0TVDtuRe8/7BkQx5+dp2e A/f30Vj8x/VTaDbvc2kjEvbmXLZ6jpsmyokEZ5lfTOaxifqYeq15UPgGwMWMWyPHX7Pn nRKeE0nrT54qNxieNTBa3+oJbwQ4yKCb0c8ktWQ9TX8lWgjvUySn1M6rrgUi2mjhazJ0 Z3Gk0b0t09y4sCzOy/ZFRmp4hGXXxwU9dtvyceffuBo22oWyStY/ME6F6lqK32yVqUp4 GnDb7T3DtlQx5tcGM9YcPii9jX6Un8kQYpQ06aFoDLEop+nDol/ggLKuOL8qHgj3Cmhs 7KZw== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=dB9WeypycoN9rS1T8JgGb9dZqtJ+SThQbCjNqY2v0zw=; b=DP0eu2AtwcV1Po9FTG/LOu+gDLEWQ1SFxNt7WMehW7CPUaF/3KprnSb0q62EWd56bN X1tphHPTmvoUVpM/jkC2PzR7cT8y3lKxNxF+MefFVRiVxbd+0CG0Hgim+Rd4YQ+Y4SZU +8vCUdi257io1ppFsQ8hOwL0hE9As9CDzrfoJNf5j4AqED3o9RoulfU1eO04C4Yt4zo5 k/bwgWn5PkGU1zxJ2mGp1YL6K0heBasBviw0NB2yeJCwO4QykIZzcg2TIzbfHDwoi9cj NY88G9+sfcNBxjg5WTHD3xs7wwPF19ZFsS58nIEh63yrC/52E0w1dwEwUCJVoOKpqjt/ Zs8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=cjDxGj6t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 187si16324390pfz.249.2018.12.23.14.53.57; Sun, 23 Dec 2018 14:55:06 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=cjDxGj6t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726049AbeLWWvl (ORCPT + 99 others); Sun, 23 Dec 2018 17:51:41 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:41350 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbeLWWvk (ORCPT ); Sun, 23 Dec 2018 17:51:40 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wBNMnoEw103094; Sun, 23 Dec 2018 22:51:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=dB9WeypycoN9rS1T8JgGb9dZqtJ+SThQbCjNqY2v0zw=; b=cjDxGj6tZTCPfvp+Lw4JyUvANmJxziukaI7jYs4h38xTg+9u9QJfmX1eqfE6S1MbveJD 4BQy0VlVzq35OR+6ATDG/MLYaGFtmBV6pQRhz/djN4OSD1j6Q7bvE3J32tTVbxxcLq8F CE5WEKX4Tg5/XvSpv/4KR3bx47cO/ZBiqTm8b5wTK7Td3Dj3RnHRaUt3NpDcYXZCA4K9 4rHxfBLuYZI/1cVB1Ae3SX7FtlIA1QpoBGeC2zKDl83RW4vEW93RlNlYMNKARieAmNBc bJPSUTA4A8XavmaLdif6mNpvFVj6a7d7boEI2xkma7KueJ+Q73Jc/yM2fighsltcx2A/ JQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2phasdk2p3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 23 Dec 2018 22:51:36 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wBNMpUSK017528 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 23 Dec 2018 22:51:30 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wBNMpUAI013189; Sun, 23 Dec 2018 22:51:30 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 23 Dec 2018 14:51:29 -0800 Date: Sun, 23 Dec 2018 14:51:28 -0800 From: "Darrick J. Wong" To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/20] xfs: xfs_fsops: drop useless LIST_HEAD Message-ID: <20181223225128.GI27208@magnolia> References: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> <1545555435-24576-10-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-10-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9116 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812230207 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:04AM +0100, Julia Lawall wrote: > Drop LIST_HEAD where the variable it declares is never used. > > Commit 0410c3bb2b88 ("xfs: factor ag btree root block > initialisation") stopped using buffer_list and started using a > buffer list in an aghdr_init_data structure, but the declaration > of buffer_list was not removed. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > identifier x; > @@ > - LIST_HEAD(x); > ... when != x > // > > Fixes: 0410c3bb2b88 ("xfs: factor ag btree root block initialisation") > Signed-off-by: Julia Lawall Reviewed-by: Darrick J. Wong --D > > --- > Successfully 0-day tested on 151 configurations. > > fs/xfs/xfs_fsops.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c > index ec2e63a7963b..f3ef70c542e1 100644 > --- a/fs/xfs/xfs_fsops.c > +++ b/fs/xfs/xfs_fsops.c > @@ -40,7 +40,6 @@ xfs_growfs_data_private( > xfs_rfsblock_t new; > xfs_agnumber_t oagcount; > xfs_trans_t *tp; > - LIST_HEAD (buffer_list); > struct aghdr_init_data id = {}; > > nb = in->newblocks; >