mm/compaction: fix the comment for try_to_compact_pages
Subsystems (2)
PATCH 1/1 mm/compaction: fix the 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.
Cc Vlastimil Babka <[email protected]>
Cc Mel Gorman <[email protected]>
Cc David Rientjes <[email protected]>
Cc Joonsoo Kim <[email protected]>
Cc Michal Hocko <[email protected]>
Signed-off-by Yang Shi <[email protected]>
--- mm/compaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/compaction.c +1 -1
@@ -1738,7 +1738,7 @@ static enum compact_result compact_zone_order(struct zone *zone, int order,* @order: The order of the current allocation * @alloc_flags: The allocation flags of the 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. */
Signature · 1 line
1.8.3.1
Quoted 10 lines · Yang Shi
"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.Cc Vlastimil Babka <[email protected]>Cc Mel Gorman <[email protected]>Cc David Rientjes <[email protected]>Cc Joonsoo Kim <[email protected]>Cc Michal Hocko <[email protected]>Signed-off-by Yang Shi <[email protected]>
Acked-by Vlastimil Babka <[email protected]>
Quoted 10 lines
--- mm/compaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/compaction.c +0
-0
mm/compaction.c static enum compact_result compact_zone_order(struct zone *zone, int order, · line 1744
Quoted 8 lines
mm/compaction.c +1
-1@@ -1738,7 +1738,7 @@ static enum compact_result compact_zone_order(struct zone *zone, int order,* @order: The order of the current allocation * @alloc_flags: The allocation flags of the 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. */
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>