From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pekka Enberg Subject: Re: [PATCH 05/20] mm: Simplify anon_vma refcounts Date: Sat, 28 Aug 2010 18:13:13 +0300 Message-ID: References: <20100828141637.421594670@chello.nl> <20100828142455.742059699@chello.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-iw0-f174.google.com ([209.85.214.174]:46453 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751925Ab0H1PN1 (ORCPT ); Sat, 28 Aug 2010 11:13:27 -0400 In-Reply-To: <20100828142455.742059699@chello.nl> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Peter Zijlstra Cc: Andrea Arcangeli , Avi Kivity , Thomas Gleixner , Rik van Riel , Ingo Molnar , akpm@linux-foundation.org, Linus Torvalds , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Benjamin Herrenschmidt , David Miller , Hugh Dickins , Mel Gorman , Nick Piggin , Paul McKenney , Yanmin Zhang , Stephen Rothwell On Sat, Aug 28, 2010 at 5:16 PM, Peter Zijlstra wrote: > 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. > > Signed-off-by: Peter Zijlstra FWIW, Acked-by: Pekka Enberg