[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160225160707.GX2854@techsingularity.net>
Date: Thu, 25 Feb 2016 16:07:07 +0000
From: Mel Gorman <mgorman@...hsingularity.net>
To: Chen Gang <chengang@...ndsoft.com.cn>
Cc: trivial@...nel.org, akpm@...ux-foundation.org, vbabka@...e.cz,
rientjes@...gle.com, linux-kernel@...r.kernel.org, mhocko@...e.cz,
hannes@...xchg.org, vdavydov@...tuozzo.com,
dan.j.williams@...el.com, linux-mm@...ck.org,
Chen Gang <gang.chen.5i5j@...il.com>
Subject: Re: [PATCH trivial] include/linux/gfp.h: Improve the coding styles
On Thu, Feb 25, 2016 at 10:38:58PM +0800, Chen Gang wrote:
> On 2/25/16 17:27, Mel Gorman wrote:
> > On Thu, Feb 25, 2016 at 06:26:31AM +0800, chengang@...ndsoft.com.cn wrote:
> >> From: Chen Gang <chengang@...ndsoft.com.cn>
> >>
> >> Always notice about 80 columns, and the white space near '|'.
> >>
> >> Let the wrapped function parameters align as the same styles.
> >>
> >> Remove redundant statement "enum zone_type z;" in function gfp_zone.
> >>
> >> Signed-off-by: Chen Gang <gang.chen.5i5j@...il.com>
> >
> > NAK from me at least. From my perspective, it's preferrable to preserve
> > blame than go through a layer of cleanup when looking for the commit
> > that defined particular flags. It's ok to cleanup code at the same time
> > definitions change for functional or performance reasons.
> >
>
> I can understand for your NAK, it is a trivial patch. For me, I guess
> trivial@...nel.org will care about this kind of patch.
>
I do not want this patch to go through the trivial tree. It still adds
another step to identifying relevant commits through git blame and has
limited, if any, benefit to maintainability.
> "it's preferable to preserve blame than go through a layer of cleanup
> when looking for the commit that defined particular flags".
>
git blame identifies what commit last altered a line. If a cleanup patch
is encountered then the tree before that commit needs to be examined
which adds time. It's rare that cleanup patches on their own are useful
and this is one of those cases.
--
Mel Gorman
SUSE Labs
Powered by blists - more mailing lists