From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id E1942280258 for ; Thu, 22 Dec 2016 17:03:54 -0500 (EST) Received: by mail-pf0-f199.google.com with SMTP id 83so374940447pfx.1 for ; Thu, 22 Dec 2016 14:03:54 -0800 (PST) Received: from mail-pf0-x22e.google.com (mail-pf0-x22e.google.com. [2607:f8b0:400e:c00::22e]) by mx.google.com with ESMTPS id e72si32016815pfd.125.2016.12.22.14.03.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Dec 2016 14:03:54 -0800 (PST) Received: by mail-pf0-x22e.google.com with SMTP id d2so41464111pfd.0 for ; Thu, 22 Dec 2016 14:03:54 -0800 (PST) Date: Thu, 22 Dec 2016 14:03:52 -0800 (PST) From: David Rientjes 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Vegard Nossum Cc: Andrew Morton , Michal Hocko , linux-mm@kvack.org, Peter Zijlstra , "Kirill A . Shutemov" , linux-kernel@vger.kernel.org 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org