Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941704AbcLVWDz (ORCPT ); Thu, 22 Dec 2016 17:03:55 -0500 Received: from mail-pf0-f173.google.com ([209.85.192.173]:36776 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765767AbcLVWDy (ORCPT ); Thu, 22 Dec 2016 17:03:54 -0500 Date: Thu, 22 Dec 2016 14:03:52 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Vegard Nossum cc: Andrew Morton , Michal Hocko , linux-mm@kvack.org, Peter Zijlstra , "Kirill A . Shutemov" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] mm: add new mmgrab() helper In-Reply-To: <20161218123229.22952-1-vegard.nossum@oracle.com> Message-ID: References: <20161218123229.22952-1-vegard.nossum@oracle.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 752 Lines: 20 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 > Acked-by: Michal Hocko > Signed-off-by: Vegard Nossum Acked-by: David Rientjes for the series