From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751580AbcFIUlP (ORCPT ); Thu, 9 Jun 2016 16:41:15 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:36224 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbcFIUlM (ORCPT ); Thu, 9 Jun 2016 16:41:12 -0400 MIME-Version: 1.0 In-Reply-To: References: <1465448705-25055-1-git-send-email-deepa.kernel@gmail.com> <1465448705-25055-2-git-send-email-deepa.kernel@gmail.com> <20160609073507.GA2790@quack2.suse.cz> From: Deepa Dinamani Date: Thu, 9 Jun 2016 13:41:10 -0700 Message-ID: Subject: Re: [PATCH 01/21] fs: Replace CURRENT_TIME_SEC with current_fs_time() To: Linus Torvalds Cc: Jan Kara , linux-fsdevel , Linux Kernel Mailing List , Arnd Bergmann , Thomas Gleixner , Al Viro , y2038@lists.linaro.org, Artem Bityutskiy , Adrian Hunter , linux-mtd , Evgeniy Dushistov , OGAWA Hirofumi , Jan Kara , "linux-ext4@vger.kernel.org" , David Howells , linux-afs@lists.infradead.org, "Tigran A. Aivazian" , "Theodore Ts'o" , Andreas Dilger , Jan Harkes , coda@cs.cmu.edu, codalist@TELEMANN.coda.cs.cmu.edu, Bob Copeland , linux-karma-devel@lists.sourceforge.net, Christoph Hellwig Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 9, 2016 at 12:15 PM, Linus Torvalds wrote: > On Thu, Jun 9, 2016 at 12:35 AM, Jan Kara wrote: >> >> You create line longer than 80 characters for affs and reiserfs. Please >> wrap those lines properly. > > No, please do *NOT* do things like that. > > These kind of mechanical patches should > > (a) be as mechanical as possible (and see elsewhere about why I think > 'sb' should be 'inode' and the patch should have been 95% automated > with a trivial script thanks to that change) > > (b) be made as easy to verify visually as possible. > > That (b) means that a conversion should *not* add whitespace fixups or > add other non-mechanical cleanups, because it's a *lot* easier to see > that a conversion like > > - inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC; > + inode->i_mtime = inode->i_ctime = current_fs_time(inode); > > makes no other changes, but if you start doing line-splitting or other > transformations (add new variables etc to get at 'sb'), suddenly you > have to verify the patch at a completely different level. > > In other words, it's actually really important to make these kinds of > bulk changes be very very obvious. Including to the point of making > them visually easier to scan as a patch by not making any other > changes. Thanks for the guidelines. Only patches 1 and 4 are mechanical. All others need some kind of inspection/ verification. I will keep these in mind for updating 1 and 4. -Deepa