From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id BC94F8D0039 for ; Fri, 18 Feb 2011 09:47:13 -0500 (EST) Message-ID: <4D5E86DF.8070805@redhat.com> Date: Fri, 18 Feb 2011 09:49:03 -0500 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH 3/3] mm: Simplify anon_vma refcounts References: <20110217161948.045410404@chello.nl> <20110217162124.457572646@chello.nl> <1298036683.5226.765.camel@laptop> In-Reply-To: <1298036683.5226.765.camel@laptop> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra Cc: Linus Torvalds , Andrea Arcangeli , Avi Kivity , Thomas Gleixner , Ingo Molnar , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Benjamin Herrenschmidt , David Miller , Hugh Dickins , Mel Gorman , Nick Piggin , Paul McKenney , Yanmin Zhang , Hugh Dickins On 02/18/2011 08:44 AM, Peter Zijlstra wrote: > Subject: mm: Simplify anon_vma refcounts > From: Peter Zijlstra > Date: Fri, 26 Nov 2010 15:38:49 +0100 > > This patch changes the anon_vma refcount to be 0 when the object is > free. It does this by adding 1 ref to being in use in the anon_vma > structure (iow. the anon_vma->head list is not empty). > > This allows a simpler release scheme without having to check both the > refcount and the list as well as avoids taking a ref for each entry > on the list. > > Reviewed-by: KAMEZAWA Hiroyuki > Acked-by: Hugh Dickins > Signed-off-by: Peter Zijlstra Acked-by: Rik van Riel -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org