]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] page migration cleanup: pass "mapping" to migration functions
authorChristoph Lameter <clameter@sgi.com>
Fri, 23 Jun 2006 09:03:33 +0000 (02:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:50 +0000 (07:42 -0700)
commit66dee20d9874571b71ee83f597091d054c3ad982
tree1161ed614a55869c278234d7472673fd1a577887
parent97f7f2c5da57f309d6a0b9b2574c2c1a11a45244
[PATCH] page migration cleanup: pass "mapping" to migration functions

Change handling of address spaces.

Pass a pointer to the address space in which the page is migrated to all
migration function.  This avoids repeatedly having to retrieve the address
space pointer from the page and checking it for validity.  The old page
mapping will change once migration has gone to a certain step, so it is less
confusing to have the pointer always available.

Move the setting of the mapping and index for the new page into
migrate_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/fs.h
include/linux/migrate.h
mm/migrate.c