]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Swapless page migration: modify core logic
authorChristoph Lameter <clameter@sgi.com>
Fri, 23 Jun 2006 09:03:37 +0000 (02:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:50 +0000 (07:42 -0700)
commitbc4949441f5cfdcbe7c6abbd1ac3b4a96c168119
treefede2324f4348701e60758d7f894aae4b09cdc9a
parent59fb2a31105d0683505bbcc4f5af28578f1a92d1
[PATCH] Swapless page migration: modify core logic

Use the migration entries for page migration

This modifies the migration code to use the new migration entries.  It now
becomes possible to migrate anonymous pages without having to add a swap
entry.

We add a couple of new functions to replace migration entries with the proper
ptes.

We cannot take the tree_lock for migrating anonymous pages anymore.  However,
we know that we hold the only remaining reference to the page when the page
count reaches 1.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/Kconfig
mm/migrate.c