Files
ubports_kernel_google_msm/include/linux
Rik van Riel c44b674323 rmap: move exclusively owned pages to own anon_vma in do_wp_page()
When the parent process breaks the COW on a page, both the original which
is mapped at child and the new page which is mapped parent end up in that
same anon_vma.  Generally this won't be a problem, but for some workloads
it could preserve the O(N) rmap scanning complexity.

A simple fix is to ensure that, when a page which is mapped child gets
reused in do_wp_page, because we already are the exclusive owner, the page
gets moved to our own exclusive child's anon_vma.

Signed-off-by: Rik van Riel <riel@redhat.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Larry Woodman <lwoodman@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-03-06 11:26:26 -08:00
..
2010-02-28 23:55:20 -08:00
2010-03-01 15:11:32 -05:00
2010-02-05 07:35:05 -08:00
2010-03-06 11:26:25 -08:00
2010-03-02 12:23:42 +01:00
2010-03-02 12:23:49 +01:00
2010-02-18 14:08:38 -08:00
2010-02-17 16:35:17 -08:00
2010-02-02 07:32:29 -08:00
2010-02-22 16:17:00 -08:00
2010-02-03 17:39:50 +11:00
2010-02-19 03:35:12 -05:00
2010-02-03 20:32:28 -08:00
2010-02-19 15:52:40 -05:00
2010-02-14 07:13:47 -07:00
2010-02-04 10:23:02 -08:00
2010-03-05 00:20:31 +01:00
2010-02-10 17:47:17 -08:00
2010-03-06 11:26:24 -08:00
2010-01-21 23:55:25 -08:00
2010-02-16 13:38:56 +09:00
2010-03-02 03:05:05 -08:00
2010-02-18 15:43:09 -08:00
2010-03-02 14:54:59 -08:00
2010-03-05 15:04:41 -06:00