From patchwork Sat Jul 29 17:43:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13333057 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 C17C5C001DC for ; Sat, 29 Jul 2023 09:43:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3CF458D0005; Sat, 29 Jul 2023 05:43:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 352DD8D0003; Sat, 29 Jul 2023 05:43:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 21A4E8D0002; Sat, 29 Jul 2023 05:43:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 0E51B8D0001 for ; Sat, 29 Jul 2023 05:43:44 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id C9EC01C9395 for ; Sat, 29 Jul 2023 09:43:43 +0000 (UTC) X-FDA: 81064162326.19.20D9616 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by imf25.hostedemail.com (Postfix) with ESMTP id EDAC3A0005 for ; Sat, 29 Jul 2023 09:43:40 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=none; dmarc=none; spf=none (imf25.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.51) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690623821; a=rsa-sha256; cv=none; b=C9xQpE7bzcJNXQm9I+uVBTX5Fb2lCuRXRhd0J4sVs+RkVSNQ5LmclrJciZlh6NWVTn93Qf 9NNXzPnqUDFQUwkeCx8LQAZlaninzIGeF9p3zaTxJw8xWah8I/fYFS5pMni9g9c0FDo/ag 5WC2EnhdHuQTcMK9xQeZJhH8mW2e3q0= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=none; dmarc=none; spf=none (imf25.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.51) smtp.mailfrom=shikemeng@huaweicloud.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690623821; 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=1v/W/H5Xt0EJz+aQ+feTqUzqzQ+UlBw7J9bsunIBtic=; b=viIhbpL4RZvkj8yucfTDREMXQ7hmW4bZ/KsZEzPEmBRNpHRXxamyWzhAZ4Uey70PtHKF+A WkWXMWA17Z+lqebFmZaaoRU+k6jz2tJRzxpj4khWaSBrzgXObU8xxjPgjgsyHrvW8a7haw j7iOuBF5pjMijj1SRdGKNvyuT1Vo1I8= Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4RCfhP3GKyz4f3mHp for ; Sat, 29 Jul 2023 17:43:33 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP1 (Coremail) with SMTP id cCh0CgDHMy5D38RkAQcpOQ--.25635S2; Sat, 29 Jul 2023 17:43:32 +0800 (CST) From: Kemeng Shi To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org Cc: baolin.wang@linux.alibaba.com, mgorman@techsingularity.net, willy@infradead.org, david@redhat.com, shikemeng@huaweicloud.com Subject: [PATCH 0/5] Fixes and cleanups to compaction Date: Sun, 30 Jul 2023 01:43:49 +0800 Message-Id: <20230729174354.2239980-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CM-TRANSID: cCh0CgDHMy5D38RkAQcpOQ--.25635S2 X-Coremail-Antispam: 1UD129KBjvdXoWruF1ktF1kuFyUCrW8uw1rZwb_yoWfJFg_uF yIyF9rtF1FkFyxXFyqgw4SyFyDGFWUCr1xJasYqr4UA39Fvan3A3ZrArW3Zr13ZasrKrZx Kwn5Jw10yr1avjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbxkFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M280x2IEY4vEnII2IxkI6r1a6r45M28lY4IEw2IIxx k0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK 6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7 xvwVC2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40E FcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr 0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8v x2IErcIFxwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F4 0E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFyl IxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxV AFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_ Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7sRi Pl1DUUUUU== X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: EDAC3A0005 X-Stat-Signature: utm71o3en7d877mna5yac5jrh8n5fxbu X-Rspam-User: X-HE-Tag: 1690623820-553877 X-HE-Meta: U2FsdGVkX18tpX2yvcXOj2aNNdRFVGiNfCMBGJk28deS/xh53gedUg6codb63ebQ5AZJIKJWIh6RlfKo7V33vKELMeqtYe1XFs6cqIgTBQPYtl2Viztj8CsScq7LQJQD9hRh2A3CLXFDenPd2c9yjsQdtjZGfCkPIPzt+/Ni9e3Bo1oanbXaN2SWY7PNSJIXoTKdkKerPKJDY6HKk9wDMC2Dq2OaL3s1MuvN/aJqKFhgvuVEuWs9ga+HEFL8j7uY2UikTr+L6EyMfCP6D0y0tM/6tPbsStbl25H+RjXByDpeFdWiiyjrbDWA8qUO3F1TzRg+YzL4Ov0zu+T2SvNk0UnZE2O+i89GeIlwn5aBxLBtTLWK/qDPE5hy0A7R4Ic6SdAufAqPi5nCMuc9sQWhTYKoj7r/fqizwgqYZjwmz/L0/7OeRm3qa36Fq9nisGfViPFyugGTLYhGsArPO/Slwn4UpuegBTBNKveLo6w5jqhZkLhAAgi4Zg2AndTJbeGvZ+W0hbscMqGQaoBiHebbgBde4ZvmXmZ318D+LkKUIBOyxuyHdV7IE40DmtZDJXKKR3WLE+RNFuJB5O83WexOR5Wjmv+yCGJNUCJE4D64yvJGE6lxavi2ht8Enb2ThRidgAjHGOjqySHkWAxNfo+CUg7rdQDY1VzBhcndpMakkAV9aBBcfmRIGTWV4abztaG/v+IKMg+ECPnDMMdMqe67WuNnAl1TMqxRkCAvt2Hg4oH8qM7ljgXqmtOwto4FF5Fs4k1XpfmXw9Hsoa20c99Y0psXdkgijFqDQ/3JdbIhfmgczFpEtLo7JMPLwunmC0B3Q4C0syY09P8gsgkmsXlIrotw+hsORG+mL9WDX1+LYWTC1ltTXz3yre68DvZNZM8hL6ImL6weO6UA4nxGWErXIze5ysEoUcXp5vPpaFlmemENjJIF7+YwqaxccfsOj+DjZr3YwdAGKdHYAHfqYzw +M1KKRtL kLNbPjNNje5IOyF7ZQnN8j9v+9RSmiceOc0PG7wB6TYeY5/3lX2vPkyuESnNf7DrauVJ7hIFiEKEz7aUgOgDYSYsu6tzcdDIJW1B1SvdW1cfkzLmzbebOCSwfgt4alB25pDm1raUZQ8B2ZjflOe+a0xBKaPH/YH2xogWqGwQavDNTMmQ2aFv3yTlxw68xuc2I2GVMEc4gAv/KFnpGZqA/zYJiJbXNYOOvcMVn+mV9ebeKQTMsP3rZpc8tdeGlRvEXB5fdHXPSrhL0IVHUtv+nhy3d7g== 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 random fixes and cleanups to free page isolation in compaction. This is based on another compact series[1]. More details can be found in respective patches. Thanks! [1] https://lore.kernel.org/all/20230728171037.2219226-1-shikemeng@huaweicloud.com/ Kemeng Shi (5): mm/compaction: allow blockpfn outside of pageblock for high order buddy page mm/compaction: set compact_cached_free_pfn correctly in update_pageblock_skip mm/compaction: merge end_pfn boundary check in isolate_freepages_range mm/compaction: remove unnecessary cursor page in isolate_freepages_block mm/compaction: remove unnecessary "else continue" at end of loop in isolate_freepages_block mm/compaction.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) Reviewed-by: Baolin Wang Reviewed-by: Baolin Wang Reviewed-by: Baolin Wang