Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp895648ybm; Fri, 29 May 2020 15:05:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZCx3XBnP7KOSavqmRcQeah2czeIJ7KPRlfo0TZUHLXpaDtB9wWIq10p0ziWIL+5ReTnbq X-Received: by 2002:a17:906:b7cd:: with SMTP id fy13mr10003081ejb.133.1590789945249; Fri, 29 May 2020 15:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590789945; cv=none; d=google.com; s=arc-20160816; b=Y0GEjyhtwkVjaxhxRSUTF8Q9VS+Mobeu9+0NCY2aGpuqSFNTMpqPaMk+V1V5Y7M35D EcHS1qaKfDWnXz+euSwih+QnpIuZ1+FX/UQyPq5Atu5Y7KnTk693J54xxbfg8WuyDuuQ RMqV5NKTLQ3ME269enONPU/R10jqii2EflULNStgxqgYipoDXBn9XJlXxm+BQKYGNlTa bpSHaQ8y66fqHOm/ggVUljeInsHdjnnontdPeSivn5d/tfL4Q3TiWKhJAiBWEmyQB5Od u+TGi4RJccf6JgbId6SLyLEim33srUUXT/lHQ3bxMtEQSzs26QOom6NaSkKHLcHKoWFo lBbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=mEj+xfzKlw4Ib7x5AQ10oWbC2hqZKkrwlMK84MkhhpI=; b=p6AFXfbciHxVuHib5fq9EHaUHii1YyJGPf7fvQPu/vwdzoockk+PlWPzOO2ZMxzzbz 0o1t16SoxON8k4L1IyR5jJAlZ3lJrOePEwtj9pIy2OpFsOKYnro9FLNpqeRsQKtOPVZH ffDKV8M3Zp4g+j351L09o2wHBuc6g5WU0z0oZVmhYjBWrZ7YuyjRxb/tomjN0HzkMxBQ yINFqpQu+c2fQ1aWe93rYqT6RPQYq+cni4pEVxh5+KzAjbL6aPIbF+L49u81VMgasr/8 tZi1ABGhVhu3jRTTeflrYpxo74sB/9AiRKuyXoDRf4NpclUblpRXlrJ6+embKNwVgaY/ md5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b="c88/l/pQ"; 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 qk2si6572154ejb.685.2020.05.29.15.05.22; Fri, 29 May 2020 15:05:45 -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; dkim=pass header.i=@yahoo.com header.s=s2048 header.b="c88/l/pQ"; 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 S1728413AbgE2WCv (ORCPT + 99 others); Fri, 29 May 2020 18:02:51 -0400 Received: from sonic309-27.consmr.mail.ne1.yahoo.com ([66.163.184.153]:44071 "EHLO sonic309-27.consmr.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728731AbgE2WCu (ORCPT ); Fri, 29 May 2020 18:02:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1590789768; bh=mEj+xfzKlw4Ib7x5AQ10oWbC2hqZKkrwlMK84MkhhpI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=c88/l/pQJgxvc0MmnUAl5HrXokW6XiILcttim2Qoqmyy3gQF6CsjkOC0zZxZp6SXkRnRu5N2+GGH6Wztygl1i/tfh/3+vtO78BGcx39QG4uG1C/HHhVHRv9BmWNiIfRPMo2hO8oedEG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xJccyw4co3M_ln6SG1WIRUn s05vsuve.v2Q1D.Eax0lIvdX.6UJBThM0AIRRFm.3jcAdbLol5zetpPVEeo8JBLbuJFO.cAFwVwo 1FZJco4gK15YRUWfhN9Qsjxk6rnwweHi3ALHhwQnzCH89x93jDXXm30XKetT9KU_55w0SjrN9cjy V32bR6hLjyYD0c1m6DMEZFLMeXVwyo7Zsjpu_zju.Qm3FwruGJI6FJn5yYJXkb6ZnUpMbAUjxG68 e_1_ZSftnrnD7Ax158.N_sByg1pB01ZxnJgGUPPQ0iJh55n0u6Nq57BHpaRMTrHHLBfFJ5WRjTN2 YJkw.KTLMpBx9gQZ7l6O2yCyw0zcNxBOLo41i78o3scQKnJv8T57GRzjOiY3VHiqRNz47.PfElN1 2sxNYeG1fFJG7FVDpTc_gDm8NB4uZrXy1P1xEZXbVODsUUFqJRjFwmbyiQv.Q1KsSo8297f_7trq IK0Y5PC6O0PpZS9mLXIu4tvI_gvED9gt7g.QcQBxSSO5tqZGQU74Ln9HMcxBnaeJnQ4SPQCXAYtm plMdPL99pzw3qgfZjlqJ0 Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Fri, 29 May 2020 22:02:48 +0000 Received: by smtp420.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 20de778416897511a1a9920cd4567e13; Fri, 29 May 2020 22:02:46 +0000 (UTC) Subject: Re: clean up kernel_{read,write} & friends v2 To: Linus Torvalds , David Laight Cc: David Howells , Christoph Hellwig , Al Viro , Ian Kent , Linux Kernel Mailing List , linux-fsdevel , LSM List , NetFilter References: <20200528054043.621510-1-hch@lst.de> <22778.1590697055@warthog.procyon.org.uk> <3aea7a1c10e94ea2964fa837ae7d8fe2@AcuMS.aculab.com> From: Casey Schaufler Autocrypt: addr=casey@schaufler-ca.com; keydata= mQINBFzV9HABEAC/mmv3jeJyF7lR7QhILYg1+PeBLIMZv7KCzBSc/4ZZipoWdmr77Lel/RxQ 1PrNx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QO4ikcef/E7HXQf/ij Dxf9HG2o5hOlMIAkJq/uLNMvABEBAAGJAjwEGAEIACYWIQQL720fVjJTAhDNQh44pRV8jEPI EQUCXNX0cAIbDAUJEswDAAAKCRA4pRV8jEPIEWkzEACKFUnpp+wIVHpckMfBqN8BE5dUbWJc GyQ7wXWajLtlPdw1nNw0Wrv+ob2RCT7qQlUo6GRLcvj9Fn5tR4hBvR6D3m8aR0AGHbcC62cq I7LjaSDP5j/em4oVL2SMgNTrXgE2w33JMGjAx9oBzkxmKUqprhJomPwmfDHMJ0t7y39Da724 oLPTkQDpJL1kuraM9TC5NyLe1+MyIxqM/8NujoJbWeQUgGjn9uxQAil7o/xSCjrWCP3kZDID vd5ZaHpdl8e1mTExQoKr4EWgaMjmD/a3hZ/j3KfTVNpM2cLfD/QwTMaC2fkK8ExMsz+rUl1H icmcmpptCwOSgwSpPY1Zfio6HvEJp7gmDwMgozMfwQuT9oxyFTxn1X3rn1IoYQF3P8gsziY5 qtTxy2RrgqQFm/hr8gM78RhP54UPltIE96VywviFzDZehMvuwzW//fxysIoK97Y/KBZZOQs+ /T+Bw80Pwk/dqQ8UmIt2ffHEgwCTbkSm711BejapWCfklxkMZDp16mkxSt2qZovboVjXnfuq wQ1QL4o4t1hviM7LyoflsCLnQFJh6RSBhBpKQinMJl/z0A6NYDkQi6vEGMDBWX/M2vk9Jvwa v0cEBfY3Z5oFgkh7BUORsu1V+Hn0fR/Lqq/Pyq+nTR26WzGDkolLsDr3IH0TiAVH5ZuPxyz6 abzjfg== Message-ID: <7b6a91a5-8c6d-044f-f675-800e0157dc39@schaufler-ca.com> Date: Fri, 29 May 2020 15:02:45 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Mailer: WebService/1.1.15959 hermes_yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.6) Content-Length: 4366 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/29/2020 12:19 PM, Linus Torvalds wrote: > On Fri, May 29, 2020 at 6:08 AM David Laight = wrote: >> A wide monitor is for looking at lots of files. > Not necessarily. > > Excessive line breaks are BAD. They cause real and every-day problems. > > They cause problems for things like "grep" both in the patterns and in > the output, since grep (and a lot of other very basic unix utilities) > is fundamentally line-based. > > So the fact is, many of us have long long since skipped the whole > "80-column terminal" model, for the same reason that we have many more > lines than 25 lines visible at a time. > > And honestly, I don't want to see patches that make the kernel reading > experience worse for me and likely for the vast majority of people, > based on the argument that some odd people have small terminal > windows. > > If you or Christoph have 80 character lines, you'll get possibly ugly > wrapped output. Tough. That's _your_ choice. Your hardware limitations > shouldn't be a pain for the rest of us. > > Longer lines are fundamentally useful. My monitor is not only a lot > wider than it is tall, my fonts are universally narrower than they are > tall. Long lines are natural. > > When I tile my terminal windows on my display, I can have 6 terminals > visible at one time, and that's because I have them three wide. And I > could still fit 80% of a fourth one side-by-side. > > And guess what? That's with my default "100x50" terminal window (go to > your gnome terminal settings, you'll find that the 80x25 thing is just > an initial default that you can change), not with some 80x25 one. And > that's with a font that has anti-aliasing and isn't some pixelated > mess. > > And most of my terminals actually end up being dragged wider and > taller than that. I checked, and my main one is 142x76 characters > right now, because it turns out that wider (and taller) terminals are > useful not just for source code. > > Have you looked at "ps ax" output lately? Or used "top"? Or done "git > diff --stat" or any number of things where it turns out that 80x25 is > really really limiting, and is simply NO LONGER RELEVANT to most of > us. > > So no. I do not care about somebody with a 80x25 terminal window > getting line wrapping. The first law of good C programming is: "Thou shalt adhere to the One True Brace Style" It extrapolates into indentation, line width, and a number of other things. Since Linux is a trademark of Linus Torvalds, you get to define what the "One Truth" is. Time to resize my terminals. > > For exactly the same reason I find it completely irrelevant if > somebody says that their kernel compile takes 10 hours because they > are doing kernel development on a Raspberry PI with 4GB of RAM. > > People with restrictive hardware shouldn't make it more inconvenient > for people who have better resources. Yes, we'll accommodate things to > within reasonable limits. But no, 80-column terminals in 2020 isn't > "reasonable" any more as far as I'm concerned. People commonly used > 132-column terminals even back in the 80's, for chrissake, don't try > to make 80 columns some immovable standard. > > If you choose to use a 80-column terminal, you can live with the line > wrapping. It's just that simple. > > And longer lines are simply useful. Part of that is that we aren't > programming in the 80's any more, and our source code is fundamentally > wider as a result. > > Yes, local iteration variables are still called 'i', because more > context just isn't helpful for some anonymous counter. Being concise > is still a good thing, and overly verbose names are not inherently > better. > > But still - it's entirely reasonable to have variable names that are > 10-15 characters and it makes the code more legible. Writing things > out instead of using abbreviations etc. > > And yes, we do use wide tabs, because that makes indentation something > you can visually see in the structure at a glance and on a > whole-function basis, rather than something you have to try to > visually "line up" things for or count spaces. > > So we have lots of fairly fundamental issues that fairly easily make > for longer lines in many circumstances. > > And yes, we do line breaks at some point. But there really isn't any > reason to make that point be 80 columns any more. > > Linus