提交 112d2d29 编写于 作者: Y Yang Shi 提交者: Linus Torvalds

mm/compaction.c: fix comment for try_to_compact_pages()

"mode" argument is not used by try_to_compact_pages() and sub functions
anymore, it has been replaced by "prio".  Fix the comment to explain the
use of "prio" argument.

Link: http://lkml.kernel.org/r/1515801336-20611-1-git-send-email-yang.shi@linux.alibaba.comSigned-off-by: NYang Shi <yang.shi@linux.alibaba.com>
Acked-by: NVlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 3a45acc0
...@@ -1738,7 +1738,7 @@ int sysctl_extfrag_threshold = 500; ...@@ -1738,7 +1738,7 @@ int sysctl_extfrag_threshold = 500;
* @order: The order of the current allocation * @order: The order of the current allocation
* @alloc_flags: The allocation flags of the current allocation * @alloc_flags: The allocation flags of the current allocation
* @ac: The context of current allocation * @ac: The context of current allocation
* @mode: The migration mode for async, sync light, or sync migration * @prio: Determines how hard direct compaction should try to succeed
* *
* This is the main entry point for direct page compaction. * This is the main entry point for direct page compaction.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册