]> bbs.cooldavid.org Git - net-next-2.6.git/commit - mm/memory.c
rmap: add exclusive page to private anon_vma on swapin
authorRik van Riel <riel@redhat.com>
Tue, 10 Aug 2010 00:19:48 +0000 (17:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Aug 2010 03:45:02 +0000 (20:45 -0700)
commitad8c2ee801ad7a52d919b478d9b2c7b39a72d295
treebc56cc023da3467447b0aecd30c0516881d53992
parent51b1bd2ace1595b72956224deda349efa880b693
rmap: add exclusive page to private anon_vma on swapin

On swapin it is fairly common for a page to be owned exclusively by one
process.  In that case we want to add the page to the anon_vma of that
process's VMA, instead of to the root anon_vma.

This will reduce the amount of rmap searching that the swapout code needs
to do.

Signed-off-by: Rik van Riel <riel@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/rmap.h
mm/memory.c
mm/rmap.c