]> err.no Git - linux-2.6/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)
commit2d1db3b1170db4e8bf0531dd636742269c2cf579
tree1161ed614a55869c278234d7472673fd1a577887
parentc3fcf8a5daacf350f0632e1379414c01f34eeea3
[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