From patchwork Wed Aug 2 09:37:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13337507 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 90DA5C001DF for ; Wed, 2 Aug 2023 01:37:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 05EFE28010F; Tue, 1 Aug 2023 21:37:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 00E602800C8; Tue, 1 Aug 2023 21:37:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E189028010F; Tue, 1 Aug 2023 21:37:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id CFAA72800C8 for ; Tue, 1 Aug 2023 21:37:34 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 9BD96140616 for ; Wed, 2 Aug 2023 01:37:34 +0000 (UTC) X-FDA: 81077452428.17.9E3FBFA Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by imf06.hostedemail.com (Postfix) with ESMTP id EABFE180005 for ; Wed, 2 Aug 2023 01:37:31 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=none; dmarc=none; spf=none (imf06.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=1690940252; 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=ke8Ypwfn2RQ7wZHUTCoHSfnXm5qTkUMbVHkCIq4ZZZE=; b=xq6+QSxE2T3JKkDTJABc3hZAy+132pehyIYW3VvEbYT2HpJ/vHYJBHtRQTiDADW+CZM+r2 7yG61/kCwIeRvgq0IqCzrhaytISQ7wfCW2gg1QKX3jM718cxwHi9FSCaKK/BKfb+AjAVQQ Be28ZTHwJTfKp/pcN3ii1BRqoFle2rE= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; dmarc=none; spf=none (imf06.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=1690940252; a=rsa-sha256; cv=none; b=AYNaxYMQoprhkw1vRyNuZeF/ooeQjD5QVcsQ4vS4HeNVXs6FRJYh7+FsOfnvI7KLvAsKLe /db8ZZsh6KJfr1xFuWrlNDbFqS5oHGX3IUraAVNTRD/M2vJ/iniDoP4zBbEo2j2ll43irD p5lMzT+gL0E3xAOIXurqkNfTU43/dLM= Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4RFvjd4Pdwz4f3lCx for ; Wed, 2 Aug 2023 09:37:25 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP4 (Coremail) with SMTP id gCh0CgAXzrFTs8lkvrtvPQ--.56352S2; Wed, 02 Aug 2023 09:37:24 +0800 (CST) From: Kemeng Shi To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, baolin.wang@linux.alibaba.com, mgorman@techsingularity.net, david@redhat.com Cc: shikemeng@huaweicloud.com Subject: [PATCH v2 0/8] Fixes and cleanups to compaction Date: Wed, 2 Aug 2023 17:37:33 +0800 Message-Id: <20230802093741.2333325-1-shikemeng@huaweicloud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E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvj TRNgAwUUUUU X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Rspam-User: X-Stat-Signature: wuz1p6www69zzdax4hy4yj4mj7jyhzjh X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: EABFE180005 X-HE-Tag: 1690940251-55064 X-HE-Meta: U2FsdGVkX19MfJMkmzcmhPHrjLTWw7G2VbhCr2hBvSOzjwt/s7IZbiYYBnUavNwVhdMVMOy35EQ14JUd3kVoH9UiTT5TUohlcH9e3AC83H5kXBlAsLkNfBTtNJGzmzdAl/n0lD+2pAXRT50M3TwMA6H/AZBKaHbPpCfPtKAEh2kpPz5D/a5Aa92jUHODuw5JC1GbI5QFSXvBwZ9mcu2vZoUleQ72Y33kppGt95rTi2rHq3zjTGmYxEKA4Un+T7BkKlWOK/g46NjM8x9cpQBGN8vG0IOOqji0gyUwOnvvwIQst5BTRxRo7lXARDm77w2+ssKBZBPW7dldFO5Drtm+m4uL/R/ovKD5Zpy3eCASfQaq8XaP3ClNPuF4ou/LTLaOP7GA4f29+ngQQ9PX3N+NI/uD3rNpr52l2BbqVc5ft8MiMZ/4aW/mu7MKyAzXnCdLW6T/9Ps26G0lLc816iw/SRW41VC2ypaY5w/qxHFT4Ryok9oKDT6YAyfcqn98DGZjIYp7bgbRoEFW6VMB60h5kKKVbVirWmLreaNUJAd+DbNKodf6YMlGyF9vSK+vTLtG+XU7ddrMePPlaNm+nFY3KyNOZ06Z4OsDcWRE20a+9CbQ2Qj//uLQ7XvqTyetL4Uhp5DPCHCwap2vYOlzGSpnTBInwTSf5Kygcfokz3StgaUcOOriDSb5xR3xRTUQctQEACcO07s63Mf1P81+wVSyOIS4obllTojpOjoAF3zr/F/sCohJ0JV8hqg4T9rKKwmw5lXmYG1aowoKpTyYma7olSNYzAFtUx0a/vnzkvLZT/JO4raRjeDP+lOnO2n1LNXwO9/ub2o1HH7fHPsSK7qqom73xnWDL64oeYUFsY3RwWfiIln4Q34uaKNg+lMA1Q692CAryHbe4gMnzJq5bpjUs1EVEu9WjsRxFPTuyqoa1l/iF4OsF/r0boYOjJcowpG/fv/ti/v3s7UHDl3Cbec SrTKBcOA hmVOZnBhMW/+w7HCny55Uf+EtnyOAdO2uQBaNLRH0WQEn1siiY5DrLHDSDMu2xcACyKwRJWyGtIevf2D69OOLtfKtqTQXWXKNGmb3KACDJqQZDQ7xhe0WR+UmTRU0DxKHH84oWwRMUmokknX/R3YWioXa0ou8uipfklAG2wdjX0G78v9uUkoEP2kyY7jAmuBlSY1UFfWCocGpZ9XKpvGt+DCoz7nrgVlQ+ekUZruf41T+Pku43a4DkO6zEWkDlgo1zXoDo2fl3d06dXSHARhgFS8HycvBvjfdyjqYQGuePKW544QkMRvLzCWcLA5MLZHkD68GcpVGe+T8RRg= 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 some random cleanups and fixes to compation. Details can be found in respective patches. This patchset is base on another cleanups to lock in compaction at [1]. Thanks! v1->v2: -Add comment to skip_offline_sections_reverse in patch 1 -Add impact in git message in patch 2 -Correct comment to fast_find_block instead of remove fast_find_block in patch 4 -Collect RVB from David and Baolin. [1] https://lore.kernel.org/all/20230725180456.2146626-1-shikemeng@huaweicloud.com/ Kemeng Shi (8): mm/compaction: avoid missing last page block in section after skip offline sections mm/compaction: correct last_migrated_pfn update in compact_zone mm/compaction: skip page block marked skip in isolate_migratepages_block mm/compaction: correct comment of fast_find_migrateblock in isolate_migratepages mm/compaction: correct comment of cached migrate pfn update mm/compaction: correct comment to complete migration failure mm/compaction: remove unnecessary return for void function mm/compaction: only set skip flag if cc->no_set_skip_hint is false mm/compaction.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) Acked-by: David Hildenbrand