From patchwork Fri May 1 03:49:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenqiwu X-Patchwork-Id: 11522039 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3293615AB for ; Fri, 1 May 2020 03:49:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E91F420857 for ; Fri, 1 May 2020 03:49:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XQkj7Nzy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E91F420857 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2A6DF8E0005; Thu, 30 Apr 2020 23:49:20 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 257278E0001; Thu, 30 Apr 2020 23:49:20 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 146428E0005; Thu, 30 Apr 2020 23:49:20 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0185.hostedemail.com [216.40.44.185]) by kanga.kvack.org (Postfix) with ESMTP id EEA6C8E0001 for ; Thu, 30 Apr 2020 23:49:19 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id A4DE0180AD806 for ; Fri, 1 May 2020 03:49:19 +0000 (UTC) X-FDA: 76766770038.23.shake93_8b9f1ce9ab85a X-Spam-Summary: 2,0,0,6d6232c8e6740d65,d41d8cd98f00b204,qiwuchen55@gmail.com,,RULES_HIT:41:355:379:541:800:960:966:973:988:989:1260:1345:1437:1534:1541:1711:1730:1747:1777:1792:2196:2198:2199:2200:2393:2559:2562:2693:2731:2895:3138:3139:3140:3141:3142:3352:3865:3866:3867:3870:3871:3872:3874:4321:4385:5007:6261:6653:7550:9413:10004:11026:11658:11914:12043:12114:12296:12297:12438:12517:12519:12555:12895:12986:13069:13161:13229:13311:13357:14096:14181:14384:14394:14687:14721:21080:21444:21627:21666:21990:30054:30070,0,RBL:209.85.210.195:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.50.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: shake93_8b9f1ce9ab85a X-Filterd-Recvd-Size: 3663 Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Fri, 1 May 2020 03:49:19 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id r14so1080624pfg.2 for ; Thu, 30 Apr 2020 20:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=9JH0Y4WS9DX1V1IBdG0WcGmOKsy/iukDExUoEMUqiqM=; b=XQkj7NzyJsP2tyT4DQburACkEAJostglKg7WK8Uv0hbc3CMINHmnmLbymFNkKr3qnP Ns34Qtx7pil7OZF1zHGzOz4844vhPNJIBt/SM2biM6qcD8lIgS1w79jOXMlTGfU2D596 YiuBckmao3u4Ojb8PnPijQ9nxer3kbia/RvVuDJb83vDT3llRGpnKt/NZziUzLuEa+Zk CuY1ZLkVG8hTjD4yKxz0zw46J+IGxCaRFCcvuySjE7MvB5uholSSGYa1RzVqKrAtaE99 N2op/ML3kdWhwSL1drSqyDZHzQ0yKxIHZ5ZG9kv3B8nsniQZXd//SQ6KQ8L1TNypqlSo ix9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9JH0Y4WS9DX1V1IBdG0WcGmOKsy/iukDExUoEMUqiqM=; b=IUBS672uGJGpt3IDksngB17mqiq3VMLagZCZk3lbXyqDX4rzm+hE7X9++oRp0ZX6Ve /j6Bjb18WmSTCNp7nNw4uiCKH+iLiEtIyWpzkUh5sDfX0NsMQgSWcOI/lw09DJQEURal 6j5xdsWHeeGZWILRZAS+w0+3FovxMr7/arWZ2krv1IGtZ1E+JNwLaUkBCY+268kKTRIU uJ2ONTIHNv3+yr/OQ5AqkMX3hEPcnQai0lWhbcZ+vMfJ9OGehZAwFEtVQrvWDURoTlIH SWd3N8/QLoOMT+yaWv6xv+xMtLQpxP5o56klg7M3QWCUM2uty05NckEfsOdGI64d+Wry OSfw== X-Gm-Message-State: AGi0PuZXy3emjmH1mNUa3fsP3OF/A5e2ULZiepexD9NdEajIPpszcPe/ J1gdCasravayziOlEccQN8U= X-Google-Smtp-Source: APiQypIntIqQFu+3+glqfw4SnPOJim+ofSxWBxPXYoyGlJEsW4ffFLsYHrYD8Pzk2K8Iy1gg/b9YBw== X-Received: by 2002:a63:ef4e:: with SMTP id c14mr2176463pgk.84.1588304958387; Thu, 30 Apr 2020 20:49:18 -0700 (PDT) Received: from localhost ([43.224.245.179]) by smtp.gmail.com with ESMTPSA id i185sm1041488pfg.14.2020.04.30.20.49.17 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Apr 2020 20:49:17 -0700 (PDT) From: Qiwu Chen X-Google-Original-From: Qiwu Chen To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, Qiwu Chen Subject: [PATCH] mm/vmscan: update the comment of should_continue_reclaim() Date: Thu, 30 Apr 2020 20:49:07 -0700 Message-Id: <20200501034907.22991-1-chenqiwu@xiaomi.com> X-Mailer: git-send-email 2.17.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000093, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The try_to_compact_zone() function has been replaced by try_to_compact_pages(), which is necessary to be updated in the comment of should_continue_reclaim(). Signed-off-by: Qiwu Chen --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index dca623db51c8..297cde712670 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2567,7 +2567,7 @@ static bool in_reclaim_compaction(struct scan_control *sc) * Reclaim/compaction is used for high-order allocation requests. It reclaims * order-0 pages before compacting the zone. should_continue_reclaim() returns * true if more pages should be reclaimed such that when the page allocator - * calls try_to_compact_zone() that it will have enough free pages to succeed. + * calls try_to_compact_pages() that it will have enough free pages to succeed. * It will give up earlier than that if there is difficulty reclaiming pages. */ static inline bool should_continue_reclaim(struct pglist_data *pgdat,