From: David Rientjes Date: Thu, 21 Jun 2012 01:00:12 +0000 (-0700) Subject: mm, mempolicy: fix mbind() to do synchronous migration X-Git-Tag: v3.5-rc4~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4c0e9e544a0eb640798cc66e68f394fa4a561bf;p=pandora-kernel.git mm, mempolicy: fix mbind() to do synchronous migration If the range passed to mbind() is not allocated on nodes set in the nodemask, it migrates the pages to respect the constraint. The final formal of migrate_pages() is a mode of type enum migrate_mode, not a boolean. do_mbind() is currently passing "true" which is the equivalent of MIGRATE_SYNC_LIGHT. This should instead be MIGRATE_SYNC for synchronous page migration. Signed-off-by: David Rientjes Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed