From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with ESMTP id 427278D003B for ; Wed, 9 Mar 2011 11:39:10 -0500 (EST) Date: Wed, 9 Mar 2011 16:38:06 +0000 From: Mel Gorman Subject: Re: [PATCH 3/3] mm: Simplify anon_vma refcounts Message-ID: <20110309163806.GE19206@csn.ul.ie> References: <20110217161948.045410404@chello.nl> <20110217162124.457572646@chello.nl> <1298036683.5226.765.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1298036683.5226.765.camel@laptop> Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra Cc: Linus Torvalds , Andrea Arcangeli , Avi Kivity , Thomas Gleixner , Rik van Riel , Ingo Molnar , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Benjamin Herrenschmidt , David Miller , Hugh Dickins , Nick Piggin , Paul McKenney , Yanmin Zhang , Hugh Dickins On Fri, Feb 18, 2011 at 02:44:43PM +0100, 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: Mel Gorman -- Mel Gorman SUSE Labs -- 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