]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] More page migration: use migration entries for file pages
authorChristoph Lameter <clameter@sgi.com>
Fri, 23 Jun 2006 09:03:38 +0000 (02:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:51 +0000 (07:42 -0700)
commitb47cc7bfab9533156397117cae7abe4964858866
tree7f0d5a58eeef2c2e08da86dc7141a1ccd050a37d
parentbd139b04fa4a7970c790afd57a75fe0b80ed1564
[PATCH] More page migration: use migration entries for file pages

This implements the use of migration entries to preserve ptes of file backed
pages during migration.  Processes can therefore be migrated back and forth
without loosing their connection to pagecache pages.

Note that we implement the migration entries only for linear mappings.
Nonlinear mappings still require the unmapping of the ptes for migration.

And another writepage() ugliness shows up.  writepage() can drop the page
lock.  Therefore we have to remove migration ptes before calling writepages()
in order to avoid having migration entries point to unlocked pages.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/swap.h
mm/migrate.c
mm/rmap.c
mm/vmscan.c