Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1603473ybh; Mon, 20 Jul 2020 02:34:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMFt4/7MsTwB8ZPCIqwvukAHQFvaGmm1bjb4EMGeC4fxFvxx9OS0G3U1QRnXemHLRa5fVU X-Received: by 2002:a17:906:c0d9:: with SMTP id bn25mr19581699ejb.176.1595237642051; Mon, 20 Jul 2020 02:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595237642; cv=none; d=google.com; s=arc-20160816; b=NzMmNI8Rrndg7CpY1qEYMYEEBkfss3b7/0AC05TCwcW8pLjYJlpCLYI8BRNMejwKMh 4eVpMff0K7StkhwEOxbJRi68Vq75EpZCA6e1mV0fMbHw5as0iu4OqgNjjFG87e2BeL1x fHxZFp2gXEQDjAhU6ir+ACvNxedc1zKqT+pGkdKCz7SiX2nwe6N4hg09uFCz8+0hHqKo iD46sIB+gI3Lem/UEX1aDp33dbpEwgF/S3W9+jBmIdGIoNmURA7TkESJHmwoFBAUBueO igaNCqk7gA6Kg59Hr/jleeDkybapSSZQIbdq7+/kdbzGSHBvFfJLvnz1krZfT/TfBqiU vEdQ== 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; bh=yvOTR6TI9a6FJwEKULL3/CM5qV7+SW7PCRIn45qc5co=; b=oIRD+8uZmF2F/JbtrIk9lOQIjciBzoAItlKYiwbfItmRmhqRu1FaKSfd89qsYECZdQ TSofev4jE55qrxrZv3QV+TKUhmKK+YtRZGCxGULjhoTBMWMW/EikCIJ486RInxqRgwWi ErORUUobNHZ+lOhRBkP8dHkU3siJP1g6gmOXbKTf61esXgePmCvP6O0qT3I7zi5NVWte j4xwm6vpClChQk46SiSsvFO7Kknz2CIlJKMSHT/Cnr4u6g4q0O6M6CvO9uOWRDFkL19L mEKxe4nSZcJ0slnSSyI4ghptg+j1NzkB6dXqFnMs7h3RIygOGPbvM1k3zoKVX/gTUoSN vhqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si10718697edj.63.2020.07.20.02.33.39; Mon, 20 Jul 2020 02:34:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727943AbgGTJdX (ORCPT + 99 others); Mon, 20 Jul 2020 05:33:23 -0400 Received: from verein.lst.de ([213.95.11.211]:46152 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbgGTJdX (ORCPT ); Mon, 20 Jul 2020 05:33:23 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 14CAB68C4E; Mon, 20 Jul 2020 11:33:20 +0200 (CEST) Date: Mon, 20 Jul 2020 11:33:19 +0200 From: Christoph Hellwig To: Thomas Gleixner Cc: Christoph Hellwig , Al Viro , Linus Torvalds , Stephen Rothwell , Luis Chamberlain , Matthew Wilcox , Kees Cook , Iurii Zaikin , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 15/23] seq_file: switch over direct seq_read method calls to seq_read_iter Message-ID: <20200720093319.GA18123@lst.de> References: <20200707174801.4162712-1-hch@lst.de> <20200707174801.4162712-16-hch@lst.de> <87eep9rgqu.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87eep9rgqu.fsf@nanos.tec.linutronix.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 17, 2020 at 11:09:13PM +0200, Thomas Gleixner wrote: > Christoph Hellwig writes: > > > Switch over all instances used directly as methods using these sed > > expressions: > > > > sed -i -e 's/\.read\(\s*=\s*\)seq_read/\.read_iter\1seq_read_iter/g' > > This sucks, really. I just got a patch against this converting the > changed version to DEFINE_SHOW_ATTRIBUTE(somefile) and thereby removing > the whole open coded gunk. The changed version of what? > If we do a tree wide change like this, then can we pretty please use a > coccinelle script to convert all trivial instances to use > DEFINE_SHOW_ATTRIBUTE so we don't have to touch the same place over and > over. I'm not going to complain about that if someone offers a script for that.