From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CABB7C433E3 for ; Mon, 20 Jul 2020 09:33:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B3DCB2176B for ; Mon, 20 Jul 2020 09:33:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727844AbgGTJdX (ORCPT ); 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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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.