Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932696Ab1CIQih (ORCPT ); Wed, 9 Mar 2011 11:38:37 -0500 Received: from gir.skynet.ie ([193.1.99.77]:57455 "EHLO gir.skynet.ie" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932342Ab1CIQig (ORCPT ); Wed, 9 Mar 2011 11:38:36 -0500 Date: Wed, 9 Mar 2011 16:38:06 +0000 From: Mel Gorman 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 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> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1033 Lines: 27 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/