Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp250382ybg; Tue, 28 Jul 2020 05:14:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB4lgialQBEfCe1Xhv/lrWPtUI1NoKBPOL/XsZwonqYvYpfw24fZ5MealuIiWJqxfMOJTo X-Received: by 2002:a50:fc8d:: with SMTP id f13mr8585260edq.380.1595938479322; Tue, 28 Jul 2020 05:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595938479; cv=none; d=google.com; s=arc-20160816; b=k0hr5luB4FloCXXL/xeU73U51hk1POGsRbDjkiroNsjJ8o/nRRI5+27A9UkDCTr9tT BkY7JPPupKl0KCAjUTOCQPo9FehdEuBYWA2KQQ3jIZUitCDg5y/8SWwwOKv0F4f7FljS vHkP5JJoLUcPpHP7fZi+WVQXBsLnlHfKThCFeDf8iWB3+cqvebTCgWCyUU5svK1W5hRW W43rZN8zF2tH0LVXVRhkXdaD/bfb6vSD19VRNgs5jqerlPtEJkgzA5apOF3XrhsWSrnn 9n3Ys2yEUcMAKSzviW4elXm81Khsux95gwFm3SqjZ0OCX0AV+yrWdsLyRq8iLlP8YqM0 1TiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=NEbcPpeO4g5zemfZSvA6qu/6U9p9IumA7aMAV7Mt89Y=; b=IIucUdLWMrRRQ702vv6ofaHnUaBKDJBRxM8n4tt42zjT78PFnanLghHFTP2WGcgufq 275IqOCCVJHP5b/p+PPTNdMWWlvDOcC3FouNqkW4HbRok9Q3wXOl3resx10KYq1itxeT IICKeATjQj+TnlJgG2HCzj/ed3m0t2kleROIQfljXd5vSh6uDa+r4Or+TT9BtSnAph8O p+fLuc3CmCQA3ZJv/myk8hS85IMxMpYQh92/hA5xc+kprx44ENdQ1aa8LLU3P9G/oWtH mkIwE8GELW/Qy2wPS0PXI2ADMrsgTVN5tIALtGchSekuW46k34RlDJYgj5MZ+dM2JS3z k6cA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be10si564908edb.574.2020.07.28.05.14.17; Tue, 28 Jul 2020 05:14:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729323AbgG1L7u (ORCPT + 99 others); Tue, 28 Jul 2020 07:59:50 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:57244 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728433AbgG1L7t (ORCPT ); Tue, 28 Jul 2020 07:59:49 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07484;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0U43tT5Y_1595937583; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U43tT5Y_1595937583) by smtp.aliyun-inc.com(127.0.0.1); Tue, 28 Jul 2020 19:59:44 +0800 Subject: Re: [PATCH v17 03/21] mm/compaction: correct the comments of compact_defer_shift To: Alexander Duyck Cc: Andrew Morton , Mel Gorman , Tejun Heo , Hugh Dickins , Konstantin Khlebnikov , Daniel Jordan , Yang Shi , Matthew Wilcox , Johannes Weiner , kbuild test robot , linux-mm , LKML , cgroups@vger.kernel.org, Shakeel Butt , Joonsoo Kim , Wei Yang , "Kirill A. Shutemov" , Rong Chen References: <1595681998-19193-1-git-send-email-alex.shi@linux.alibaba.com> <1595681998-19193-4-git-send-email-alex.shi@linux.alibaba.com> From: Alex Shi Message-ID: <3bd60e1b-a74e-050d-ade4-6e8f54e00b92@linux.alibaba.com> Date: Tue, 28 Jul 2020 19:59:33 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> * Compaction is deferred when compaction fails to result in a page >> - * allocation success. 1 << compact_defer_limit compactions are skipped up >> + * allocation success. compact_defer_shift++, compactions are skipped up >> * to a limit of 1 << COMPACT_MAX_DEFER_SHIFT >> */ >> void defer_compaction(struct zone *zone, int order) > > So this doesn't read right. I wouldn't keep the "++," in the > explanation, and if we are going to refer to a limit of "1 << > COMPACT_MAX_DEFER_SHIFT" then maybe this should be left as "1 << > compact_defer_shift". > Thanks for comments! So is the changed patch fine? -- From 80ffde4c8e13ba2ad1ad5175dbaef245c2fe49bc Mon Sep 17 00:00:00 2001 From: Alex Shi Date: Tue, 26 May 2020 09:47:01 +0800 Subject: [PATCH] mm/compaction: correct the comments of compact_defer_shift There is no compact_defer_limit. It should be compact_defer_shift in use. and add compact_order_failed explanation. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org --- include/linux/mmzone.h | 1 + mm/compaction.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index f6f884970511..14c668b7e793 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -512,6 +512,7 @@ struct zone { * On compaction failure, 1<