diff options
author | Yang Shi <yang.shi@linux.alibaba.com> | 2018-01-31 19:20:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-01-31 20:18:39 -0500 |
commit | 112d2d29fc087d3078f60db220c4f31f25e59cf0 (patch) | |
tree | ce4146a666b08a5e7983f966bc061fed004963ef /mm/compaction.c | |
parent | 3a45acc0869748d7a650e36377839d849c28a52c (diff) |
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.com
Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
Acked-by: Vlastimil 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/compaction.c')
-rw-r--r-- | mm/compaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index 10cd757f1006..2c8999d027ab 100644 --- a/mm/compaction.c +++ b/mm/compaction.c | |||
@@ -1738,7 +1738,7 @@ int sysctl_extfrag_threshold = 500; | |||
1738 | * @order: The order of the current allocation | 1738 | * @order: The order of the current allocation |
1739 | * @alloc_flags: The allocation flags of the current allocation | 1739 | * @alloc_flags: The allocation flags of the current allocation |
1740 | * @ac: The context of current allocation | 1740 | * @ac: The context of current allocation |
1741 | * @mode: The migration mode for async, sync light, or sync migration | 1741 | * @prio: Determines how hard direct compaction should try to succeed |
1742 | * | 1742 | * |
1743 | * This is the main entry point for direct page compaction. | 1743 | * This is the main entry point for direct page compaction. |
1744 | */ | 1744 | */ |