From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965421AbeALX4X (ORCPT + 1 other); Fri, 12 Jan 2018 18:56:23 -0500 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:51148 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965291AbeALX4W (ORCPT ); Fri, 12 Jan 2018 18:56:22 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1896788|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01e01429;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---0SwVGF8q_1515801367; From: Yang Shi To: akpm@linux-foundation.org Cc: yang.shi@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vlastimil Babka , Mel Gorman , David Rientjes , Joonsoo Kim , Michal Hocko Subject: [PATCH] mm/compaction: fix the comment for try_to_compact_pages Date: Sat, 13 Jan 2018 07:55:36 +0800 Message-Id: <1515801336-20611-1-git-send-email-yang.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: "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 Cc: Mel Gorman Cc: David Rientjes Cc: Joonsoo Kim Cc: Michal Hocko Signed-off-by: Yang Shi --- mm/compaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/compaction.c b/mm/compaction.c index 10cd757..2c8999d 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -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. */ -- 1.8.3.1