diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-06-23 11:03:32 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 16:42:50 +0200 |
commit | c3fcf8a5daacf350f0632e1379414c01f34eeea3 (patch) | |
tree | ec7a4cd5d7a2b60ec4539479bb5b24c46b5cf72f /usr | |
parent | [PATCH] page migration cleanup: drop nr_refs in remove_references() (diff) | |
download | linux-c3fcf8a5daacf350f0632e1379414c01f34eeea3.tar.xz linux-c3fcf8a5daacf350f0632e1379414c01f34eeea3.zip |
[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 <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions