From 1c4b72eae76dbacde5ec3b2e51ef7c7e92959f7d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 3 May 2012 15:43:47 +1000 Subject: [PATCH] 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 --- mm/mempolicy.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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)) && -- 2.39.5