From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752142AbeAQInf (ORCPT + 1 other); Wed, 17 Jan 2018 03:43:35 -0500 Received: from mx2.suse.de ([195.135.220.15]:58861 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750815AbeAQIne (ORCPT ); Wed, 17 Jan 2018 03:43:34 -0500 Subject: Re: [PATCH] mm/compaction: fix the comment for try_to_compact_pages To: Yang Shi , akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mel Gorman , David Rientjes , Joonsoo Kim , Michal Hocko References: <1515801336-20611-1-git-send-email-yang.shi@linux.alibaba.com> From: Vlastimil Babka Message-ID: <149a38e1-a8cc-1029-eb68-5cce1fa39496@suse.cz> Date: Wed, 17 Jan 2018 09:43:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1515801336-20611-1-git-send-email-yang.shi@linux.alibaba.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 01/13/2018 12:55 AM, Yang Shi wrote: > "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 Acked-by: Vlastimil Babka > --- > 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. > */ >