]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-do_migrate_pages-calls-migrate_to_node-even-if-task-is-already-on-a-correct-node-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 3 May 2012 05:43:47 +0000 (15:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:29 +0000 (15:46 +1000)
clean up comment layout

Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <mkosaki@redhat.com>
Cc: Larry Woodman <lwoodman@redhat.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mempolicy.c

index f57656610fd7f05411fa6864f8409484defe217c..7eb2f4c709fb8531b120ee2e3ba87e1d7097235d 100644 (file)
@@ -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)) &&