Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3060107imu; Sun, 23 Dec 2018 14:55:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN443XwYOXKj5sscSPd+CHA9Yvhf0M/JyRLcdxgZrAiutbQAqEmBwTkDZz5ceVYUyLAXfAnU X-Received: by 2002:a63:1013:: with SMTP id f19mr10499346pgl.38.1545605706177; 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=Psk3J0iFrcpxgrUmMGMcY8EBkyCzpfOJE2PX+AZgeezJ/93y5D6BIwuEEMYJqxgGYc 53ETQ8rbx0vIAmhsPrTYAthmfXqdBeE6VoJidor8aED3cbAU8eozd6MeUiWLM7wVb5yS Ne9YoKMEROTsVe6GMso05hgWL/u0Km0xfrphH3zz1wgBzKgfdvRtX1/q8FuC0R6vpHQM WVZGdzM3XTBPer5K+4wmXwveOFibDrEK6RJbH30rYDen6435J5wu293oArdJkQuatpuH MPTmAy3BOsYKO0HrW8oCNbRjEdboFIJ2+1KUwt/kPuqnt73FJg1UuE9vWgI8big2QGoa N8Iw== 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=e0z3DYVyUaMko8BGk6gA5izPjF3giCzJWTcRV7x8W5U=; b=QvOQlfui8APYShbg+OzGQacVf9qxZh8QevPbwwZdGqwegEBZCjbP3QQFSu4McWYfBJ l6fvA7OOL4mqBfKrHUydn+zbHGOEWCyEuQPleN7iamOdn1+8HWEfyRZJnc3b44LLAgQM 9E53AerQnuHGo5hYDIcowy7k9xajAzEFkrWEUe6iH4Qf3e1x5UxHU0LTPzdzw2+keiX7 PHWtyVXZN/36hVHm64h8tP+tG+LiiDEXgS063MZrU8JJMyAGsEcSDzTeyFbDR8gSP8hg sWcPEnGOE+GvrHWJoBo8qL5dackQX/0UFBT1ikj4Kjg2p3y93aLU8Ny8+t6w/CptsSC+ /+Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="rOoCDR/z"; 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 m7si31675017pfc.118.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="rOoCDR/z"; 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 S1725959AbeLWWvd (ORCPT + 99 others); Sun, 23 Dec 2018 17:51:33 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:33840 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbeLWWvd (ORCPT ); Sun, 23 Dec 2018 17:51:33 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wBNMoj5D108758; Sun, 23 Dec 2018 22:51:21 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=e0z3DYVyUaMko8BGk6gA5izPjF3giCzJWTcRV7x8W5U=; b=rOoCDR/zRVzL+3jqUArdlSfAowLhTvc+26FsWtqT/4APr8ZMbzRnaKZWQsg2Tpvu51k8 ZUPshHtlQ+4ROjeFKp/tQ7KqYvTfHQ8lM1GjXmJHzbAw6HT8IgikeNlA6Ly+4IvRnLsF wohhndxkhbk/tyNU5gI826ZXbYzagQo5htdxaG3NlTFun2Vw6KdKW21l4rx7MA/tFdKg d459CHXrjfXVddDtwMXPli3tzCmC9KTuVc/aTt4kt4XXxgyMZTYF8ARV2grQBI+dHOm2 NtM8yJyWd9Ul2QIFwPjmZimQYZXo0GMSRAqZzO17+PrH96SuYOo80UpYH7wa8kG8BA5g ug== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2phdwqju4s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 23 Dec 2018 22:51:21 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id wBNMpKYH029073 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 23 Dec 2018 22:51:21 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wBNMpKZr025254; Sun, 23 Dec 2018 22:51:20 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 23 Dec 2018 14:51:19 -0800 Date: Sun, 23 Dec 2018 14:51:18 -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 08/20] xfs: xfs_buf: drop useless LIST_HEAD Message-ID: <20181223225118.GH27208@magnolia> References: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> <1545555435-24576-9-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-9-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:03AM +0100, Julia Lawall wrote: > Drop LIST_HEAD where the variable it declares has never > been used. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > identifier x; > @@ > - LIST_HEAD(x); > ... when != x > // > > Fixes: 26f1fe858f274 ("xfs: reduce lock hold times in buffer writeback") > Signed-off-by: Julia Lawall Looks ok; are you planning to push this whole series directly to Linus or do you want me to take the two xfs patches through? Reviewed-by: Darrick J. Wong --D > > --- > Successfully 0-day tested on 151 configurations. > > fs/xfs/xfs_buf.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c > index b21ea2ba768d..eedc5e0156ff 100644 > --- a/fs/xfs/xfs_buf.c > +++ b/fs/xfs/xfs_buf.c > @@ -1992,7 +1992,6 @@ xfs_buf_delwri_submit_buffers( > struct list_head *wait_list) > { > struct xfs_buf *bp, *n; > - LIST_HEAD (submit_list); > int pinned = 0; > struct blk_plug plug; > >