]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] page migration: fail if page is in a vma flagged VM_LOCKED
authorChristoph Lameter <clameter@engr.sgi.com>
Wed, 15 Mar 2006 03:50:19 +0000 (19:50 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 15 Mar 2006 05:43:02 +0000 (21:43 -0800)
commit4983da07f1e2e8dc81cb9d640fbf35b899cdbdf2
tree9c238114f029d1d22bc55f47e8d95ef7335c540d
parente843e280cbe218fc8387339806d344708dee348a
[PATCH] page migration: fail if page is in a vma flagged VM_LOCKED

page migration currently simply retries a couple of times if try_to_unmap()
fails without inspecting the return code.

However, SWAP_FAIL indicates that the page is in a vma that has the
VM_LOCKED flag set (if ignore_refs ==1).  We can check for that return code
and avoid retrying the migration.

migrate_page_remove_references() now needs to return a reason why the
failure occured.  So switch migrate_page_remove_references to use -Exx
style error messages.

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