From patchwork Thu Jul 20 11:53:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13319737 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D19D5EB64DD for ; Thu, 20 Jul 2023 03:53:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D86352800AB; Wed, 19 Jul 2023 23:53:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D3FB92800AC; Wed, 19 Jul 2023 23:53:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BD4A82800AB; Wed, 19 Jul 2023 23:53:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id AE15428004C for ; Wed, 19 Jul 2023 23:53:28 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 7C234A0002 for ; Thu, 20 Jul 2023 03:53:28 +0000 (UTC) X-FDA: 81030620496.09.DAB1855 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by imf29.hostedemail.com (Postfix) with ESMTP id 10A69120019 for ; Thu, 20 Jul 2023 03:53:25 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=none; spf=none (imf29.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.51) smtp.mailfrom=shikemeng@huaweicloud.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689825206; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=XpKBWDTbeCIy8/R4QapWa7PTDhezBCBsNrZ3qApJt3Q=; b=Zx8EB2BJgUPoFjTSJWivTS6d5CTxXUdBZlu65lBDB3802FBPbo/d8UjVhyymeB/8WS48Rw Y8mJprwaoMRpW9KIeuI1B+ZhrpcY/VKCpdGfHIEZoNqCrl9eNMjmjErjvjFdgu03xtjChu ixnTPPZ+qrLre/3g46kc+pUq6RPaZP4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689825206; a=rsa-sha256; cv=none; b=xak8DHWgpzVh1O7VH7NDzxJNQhshY9LnTPMsaAyDUMbjSBQpyOIEvBk5vomfqLO8+iBN5L iQ0daJ4kmzP4rIrt1cGKQqz7DZoRpWYtWn33k2hxTh9e+mbKr/oFnZW3Y99+GFhP+8ddDf 4TwM7jfvXCjyb0dVNqGsJV0FLNp+C1w= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=none; spf=none (imf29.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.51) smtp.mailfrom=shikemeng@huaweicloud.com; dmarc=none Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4R5zLQ33Q0z4f3q35 for ; Thu, 20 Jul 2023 11:53:18 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgC3q+mtr7hk4qk0OQ--.49914S2; Thu, 20 Jul 2023 11:53:19 +0800 (CST) From: Kemeng Shi To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: shikemeng@huaweicloud.com Subject: [PATCH 0/2] Two minor cleanups for compaction Date: Thu, 20 Jul 2023 19:53:48 +0800 Message-Id: <20230720115351.2039431-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CM-TRANSID: Syh0CgC3q+mtr7hk4qk0OQ--.49914S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY27AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JF v_Gryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AK xVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aV AFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x2 0xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18Mc Ij6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l F7I21c0EjII2zVCS5cI20VAGYxC7MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r 1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CE b7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0x vE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq3wCI 42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxh VjvjDU0xZFpf9x0pRVc_3UUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 10A69120019 X-Rspam-User: X-Stat-Signature: 7it4fmt6mph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fPgWIBKrSFQLOI4cnAq1ARVkWrRdVoA5lbmAtaSDoPJoHsQEAPnXM0zHpvqPjzn6C5rqSV2kIZiL3wNJcbo+jHaW1N2Nn5UmlutdymoCPY2/v/owLUy2PbauENOv55TnAZ/gdOVkInE9h6xursKbzpQ30Em0WWQOX9knoOBE9JE2zAYFF4v4pqWbcJm5s4lqHP6/xyJQBstJMJcPszbvQ= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi all, this series contains two random cleanups for compaction. Patch 1 correct wrong comment in fast_isolate_freepages. Patch 2 avoid to call unneeded pageblock_end_pfn when no_set_skip_hint is set. Thanks! Kemeng Shi (2): mm/compaction: correct comment of candidate pfn in fast_isolate_freepages mm/compaction: avoid unneeded pageblock_end_pfn when no_set_skip_hint is set mm/compaction.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)