[PATCH 2/2, v2] mm/migration: Make rmap_walk_anon() andtry_to_unmap_anon() more scalable

From: Ingo Molnar
Date: Sun Dec 02 2012 - 10:12:28 EST



* Rik van Riel <riel@xxxxxxxxxx> wrote:

> >+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.

Agreed, doing that rename makes perfect sense - I've done that
in the v2 version attached below.

Thanks,

Ingo

----------------------->