[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.10.1612221403340.108886@chino.kir.corp.google.com>
Date: Thu, 22 Dec 2016 14:03:52 -0800 (PST)
From: David Rientjes <rientjes@...gle.com>
To: Vegard Nossum <vegard.nossum@...cle.com>
cc: Andrew Morton <akpm@...ux-foundation.org>,
Michal Hocko <mhocko@...e.com>, linux-mm@...ck.org,
Peter Zijlstra <peterz@...radead.org>,
"Kirill A . Shutemov" <kirill@...temov.name>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/4] mm: add new mmgrab() helper
On Sun, 18 Dec 2016, Vegard Nossum wrote:
> Apart from adding the helper function itself, the rest of the kernel is
> converted mechanically using:
>
> git grep -l 'atomic_inc.*mm_count' | xargs sed -i 's/atomic_inc(&\(.*\)->mm_count);/mmgrab\(\1\);/'
> git grep -l 'atomic_inc.*mm_count' | xargs sed -i 's/atomic_inc(&\(.*\)\.mm_count);/mmgrab\(\&\1\);/'
>
> This is needed for a later patch that hooks into the helper, but might be
> a worthwhile cleanup on its own.
>
> (Michal Hocko provided most of the kerneldoc comment.)
>
> Cc: Andrew Morton <akpm@...ux-foundation.org>
> Acked-by: Michal Hocko <mhocko@...e.com>
> Signed-off-by: Vegard Nossum <vegard.nossum@...cle.com>
Acked-by: David Rientjes <rientjes@...gle.com>
for the series
Powered by blists - more mailing lists