From: Christoph Lameter Date: Wed, 15 Mar 2006 03:50:19 +0000 (-0800) Subject: [PATCH] page migration: fail if page is in a vma flagged VM_LOCKED X-Git-Tag: v2.6.16~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4983da07f1e2e8dc81cb9d640fbf35b899cdbdf2;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed