From: Christoph Lameter Date: Fri, 23 Jun 2006 09:03:32 +0000 (-0700) Subject: [PATCH] page migration cleanup: extract try_to_unmap from migration functions X-Git-Tag: v2.6.18-rc1~1081^2~181 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3fcf8a5daacf350f0632e1379414c01f34eeea3;p=pandora-kernel.git [PATCH] page migration cleanup: extract try_to_unmap from migration functions Extract try_to_unmap and rename remove_references -> move_mapping try_to_unmap() may significantly change the page state by for example setting the dirty bit. It is therefore best to unmap in migrate_pages() before calling any migration functions. migrate_page_remove_references() will then only move the new page in place of the old page in the mapping. Rename the function to migrate_page_move_mapping(). This allows us to get rid of the special unmapping for the fallback path. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed