]> bbs.cooldavid.org Git - net-next-2.6.git/commit - mm/migrate.c
[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)
commit04e62a29bf157ce1edd168f2b71b533c80d13628
tree7f0d5a58eeef2c2e08da86dc7141a1ccd050a37d
parent442c9137de8d769053e81d325709dca72f0b5e44
[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