diff options
| author | Christoph Lameter <clameter@engr.sgi.com> | 2006-03-14 22:50:19 -0500 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-15 00:43:02 -0500 | 
| commit | 4983da07f1e2e8dc81cb9d640fbf35b899cdbdf2 (patch) | |
| tree | 9c238114f029d1d22bc55f47e8d95ef7335c540d /drivers/usb/class/cdc-acm.c | |
| parent | e843e280cbe218fc8387339806d344708dee348a (diff) | |
[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>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions
