Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760712AbcLPKwY (ORCPT ); Fri, 16 Dec 2016 05:52:24 -0500 Received: from aserp1050.oracle.com ([141.146.126.70]:36721 "EHLO aserp1050.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757443AbcLPKwQ (ORCPT ); Fri, 16 Dec 2016 05:52:16 -0500 Subject: Re: [PATCH 1/4] mm: add new mmgrab() helper To: "Kirill A. Shutemov" , Peter Zijlstra References: <20161216082202.21044-1-vegard.nossum@oracle.com> <20161216095624.GR3107@twins.programming.kicks-ass.net> <20161216101915.GC27758@node> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Rik van Riel , Matthew Wilcox , Andrew Morton , Michal Hocko , Al Viro , Ingo Molnar , Linus Torvalds From: Vegard Nossum Message-ID: Date: Fri, 16 Dec 2016 11:20:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161216101915.GC27758@node> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: aserp1040.oracle.com [141.146.126.69] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 469 Lines: 17 On 12/16/2016 11:19 AM, Kirill A. Shutemov wrote: > On Fri, Dec 16, 2016 at 10:56:24AM +0100, Peter Zijlstra wrote: >> But I must say mmget() vs mmgrab() is a wee bit confusing. > > mm_count vs mm_users is not very clear too. :) > I was about to say, I'm not sure it's much better than mmput() vs mmdrop() or mm_users vs mm_count either, although the way I rationalised it was the 3 vs 4 letters: mmget() -- mmgrab() mmput() -- mmdrop() ^^^ 3 ^^^^ 4 Vegard