Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3312495imu; Sun, 23 Dec 2018 22:33:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN6OlwNjtz0zgZBE2IKW9FfQQzVmQrxIUkPdh7OBfayCJ/BUapmJyi9n+iRfCppNB/zYouzh X-Received: by 2002:a63:2c82:: with SMTP id s124mr11149652pgs.73.1545633219910; Sun, 23 Dec 2018 22:33:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545633219; cv=none; d=google.com; s=arc-20160816; b=b5AaVXBluGzoCuCzuNm3O14yIghG1uMTa4BIRLdEUAEC7NlLKkLTVuBYInpaSGLsOt KsykXu/kVXMrWDkExle8YylYSx7OE1Ta2/nScXIhcNivXed1+HLL9bKBuU9zzckrd+E2 kaiLcUib4Ok2aFeP+oD4SGusgZB8QdjH2H9I7qw7t9SnuPhfyKQURjoPm11Rtu0zZMfc K9JbP57+pBWZuikD8Jk7AhjtcKaqeg3w9jLCh1NGEghELeMk+6vkznhXAAkDiC5Z4DYE LWwvydeUWc/uETP6yUV1byGQdrXCdmaIcOHDYCD2ujNOgEWPBmAbFi7x7BQLgu6l7gXs EVRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=5NcM1DGnC2kvXlMD0gVf4aK4fZrBz3VVbqtjFjqY94g=; b=uGl4cMgjV+5oyE15/12DIE1pmGgyuAjL+fZ/tm16PoGA9y+EBIFyfUYyn7TKYOACFV wWPiZ2ITKLS/hpUe8ScCRGjEvVMGrpEVQFX++qYl77Th8f5GUKDVerM4LB0JQke7IOWm ROsycUPcpMlkDNk31FiW2sziJN+uI7cmemj9AO/yk5bv38NF2i7LhignMZIY9XmNK+yq vRNXbD472f5sxe6AU69DxG2xW+MakRhemix/YOhlP9pCaXEdbF3obuE9HM/JMPvzMwDB l7VYe1djh6B9sn9kSOPYcsa2qoIsfPdZFHgamTfN5d2OsebL6WQt0b7H/eUtl143WbT1 6h4g== 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 j10si23245228pgt.155.2018.12.23.22.33.24; Sun, 23 Dec 2018 22:33:39 -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 S1726702AbeLXGcg (ORCPT + 99 others); Mon, 24 Dec 2018 01:32:36 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:47060 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbeLXGcf (ORCPT ); Mon, 24 Dec 2018 01:32:35 -0500 X-IronPort-AV: E=Sophos;i="5.56,391,1539640800"; d="scan'208";a="290032572" Received: from abo-91-111-68.mrs.modulonet.fr (HELO hadrien) ([85.68.111.91]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Dec 2018 07:32:33 +0100 Date: Mon, 24 Dec 2018 07:32:33 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: "Darrick J. Wong" 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 In-Reply-To: <20181223225118.GH27208@magnolia> Message-ID: References: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> <1545555435-24576-9-git-send-email-Julia.Lawall@lip6.fr> <20181223225118.GH27208@magnolia> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 23 Dec 2018, Darrick J. Wong wrote: > 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? Please take them. Thanks. julia > > 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; > > > > >