From: Andrew Morton Date: Thu, 3 May 2012 05:43:47 +0000 (+1000) Subject: mm-do_migrate_pages-calls-migrate_to_node-even-if-task-is-already-on-a-correct-node-fix X-Git-Tag: next-20120503~2^2~199 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1c4b72eae76dbacde5ec3b2e51ef7c7e92959f7d;p=karo-tx-linux.git mm-do_migrate_pages-calls-migrate_to_node-even-if-task-is-already-on-a-correct-node-fix clean up comment layout Cc: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Cc: Larry Woodman Cc: Mel Gorman Cc: Rik van Riel Signed-off-by: Andrew Morton --- diff --git a/mm/mempolicy.c b/mm/mempolicy.c index f57656610fd7..7eb2f4c709fb 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -1014,18 +1014,18 @@ int do_migrate_pages(struct mm_struct *mm, for_each_node_mask(s, tmp) { /* - * do_migrate_pages() tries to maintain the - * relative node relationship of the pages - * established between threads and memory areas. + * do_migrate_pages() tries to maintain the relative + * node relationship of the pages established between + * threads and memory areas. * - * However if the number of source nodes is not - * equal to the number of destination nodes we - * can not preserve this node relative relationship. - * In that case, skip copying memory from a node that - * is in the destination mask. + * However if the number of source nodes is not equal to + * the number of destination nodes we can not preserve + * this node relative relationship. In that case, skip + * copying memory from a node that is in the destination + * mask. * * Example: [2,3,4] -> [3,4,5] moves everything. - * [0-7] - > [3,4,5] moves only 0,1,2,6,7. + * [0-7] - > [3,4,5] moves only 0,1,2,6,7. */ if ((nodes_weight(*from_nodes) != nodes_weight(*to_nodes)) &&