[PATCH 3/7] mm anon rmap: remove anon_vma_moveto_tail

2012-09-04 Thread Michel Lespinasse
mremap() had a clever optimization where move_ptes() did not take the anon_vma lock to avoid a race with anon rmap users such as page migration. Instead, the avc's were ordered in such a way that the origin vma was always visited by rmap before the destination. This ordering and the use of page

[PATCH 3/7] mm anon rmap: remove anon_vma_moveto_tail

2012-09-04 Thread Michel Lespinasse
mremap() had a clever optimization where move_ptes() did not take the anon_vma lock to avoid a race with anon rmap users such as page migration. Instead, the avc's were ordered in such a way that the origin vma was always visited by rmap before the destination. This ordering and the use of page