From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx106.postini.com [74.125.245.106]) by kanga.kvack.org (Postfix) with SMTP id 92AD96B0068 for ; Sat, 1 Dec 2012 15:34:14 -0500 (EST) Message-ID: <50BA69B7.30002@redhat.com> Date: Sat, 01 Dec 2012 15:33:59 -0500 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH 2/2] mm/migration: Make rmap_walk_anon() and try_to_unmap_anon() more scalable References: <1354305521-11583-1-git-send-email-mingo@kernel.org> <20121201094927.GA12366@gmail.com> <20121201122649.GA20322@gmail.com> <20121201184135.GA32449@gmail.com> <20121201201538.GB2704@gmail.com> In-Reply-To: <20121201201538.GB2704@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Ingo Molnar Cc: Linus Torvalds , Linux Kernel Mailing List , linux-mm , Peter Zijlstra , Paul Turner , Lee Schermerhorn , Christoph Lameter , Mel Gorman , Andrew Morton , Andrea Arcangeli , Thomas Gleixner , Johannes Weiner , Hugh Dickins On 12/01/2012 03:15 PM, Ingo Molnar wrote: > Index: linux/include/linux/rmap.h > =================================================================== > --- linux.orig/include/linux/rmap.h > +++ linux/include/linux/rmap.h > @@ -128,6 +128,17 @@ static inline void anon_vma_unlock(struc > up_write(&anon_vma->root->rwsem); > } > > +static inline void anon_vma_lock_read(struct anon_vma *anon_vma) > +{ > + down_read(&anon_vma->root->rwsem); > +} I see you did not rename anon_vma_lock and anon_vma_unlock to anon_vma_lock_write and anon_vma_unlock_write. That could get confusing to people touching that code in the future. The patch looks correct, though. -- All rights reversed -- 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/ . Don't email: email@kvack.org