From patchwork Fri Jul 28 17:10:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13331532 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 874FFC0015E for ; Fri, 28 Jul 2023 09:10:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F37C68D0002; Fri, 28 Jul 2023 05:10:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ED86C6B007D; Fri, 28 Jul 2023 05:10:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D13368D0002; Fri, 28 Jul 2023 05:10:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id BEE986B0078 for ; Fri, 28 Jul 2023 05:10:25 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 7B483A0BB3 for ; Fri, 28 Jul 2023 09:10:25 +0000 (UTC) X-FDA: 81060449610.29.40C7CEF Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) by imf17.hostedemail.com (Postfix) with ESMTP id 4212C40008 for ; Fri, 28 Jul 2023 09:10:21 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=none; spf=none (imf17.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.56) 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=1690535423; 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=o9fEvvPPvTcPPCMN71MoiEp5zN8QWfrjxXKABievED8=; b=Xdv0KOFMURUOcPf95l7sfg5qEu4W1bbLNQ33WBxBN1LSGXiGvrrShqpqPChE3oV/sZsOEJ C55j9ZxeGxDQOH+7+5Xmb/nLJT41z5x1inXzTV/J2Dn0o0wIG4D1W4n0AU28uuslPWEwKu BaVGLnkWTjeyWQOOhXKl8/taL/B7+Go= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690535423; a=rsa-sha256; cv=none; b=r53hQV0rG/f6DXiK1PU6W5NWyURTVKDeuvsCrzC/fKGrbM4ocVKHXXp4rQh8Cr+wJOo4LI EWNvMHYKXfRutXT1BDh4aughbxt40nfKpov4S0KOgu1BrxhDxXRAnEfR56OkT0GlKqnGDg rnI2+S4ooyatCPklKV3eBJQyipf7o1k= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; spf=none (imf17.hostedemail.com: domain of shikemeng@huaweicloud.com has no SPF policy when checking 45.249.212.56) smtp.mailfrom=shikemeng@huaweicloud.com; dmarc=none Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4RC20P0qf9z4f3nyP for ; Fri, 28 Jul 2023 17:10:13 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP4 (Coremail) with SMTP id gCh0CgA3n7L1hcNkCrD+Ow--.32454S2; Fri, 28 Jul 2023 17:10:13 +0800 (CST) From: Kemeng Shi To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, baolin.wang@linux.alibaba.com, mgorman@techsingularity.net, willy@infradead.org, david@redhat.com Cc: shikemeng@huaweicloud.com Subject: [PATCH 0/8] Fixes and cleanups to compaction Date: Sat, 29 Jul 2023 01:10:29 +0800 Message-Id: <20230728171037.2219226-1-shikemeng@hu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8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x0pREPf PUUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 4212C40008 X-Rspam-User: X-Stat-Signature: fmprqmm38r878aggi4qrjh3t4e5hgrfc X-Rspamd-Server: rspam03 X-HE-Tag: 1690535421-194583 X-HE-Meta: U2FsdGVkX1+PqyFDtPWNn1br/JfIuAzjX87/dqlqCUbvW76H0sfY5bd4FknqZiu3zgc5FyQ/dSlkqk8y8meTp9EeUqyU30BUsNLjEBNqmlyjF07zglArQnbbFoyKkQhohJCOoFYTu3bY/DOJOcYVxsboLw859FSpwydCwm7bAYqNmzuGuH9EoHmms+TuLeuw8JHERGiRn6iv0KB3knsJiFjDjXzxxgj5Fn7tu6tycy2gJ7X09vxEH6uBIWi2RLeGIJZeneijZOux5c/wwbu7DYMNWO17vW7oHhlOrM8HqKKPizbcdlGTje5M7EyYnM/A5hfalokDTH50ZYgq7scbp+Z4D5DZwGztAKynHdsS6Ktvbm//j2atRLrCdHDeI1PqCjh5ARZGC4cMnwpZG+FTAS+QTZH8dlyopAoOYA5L/6YfhLz+tQMahKnaOow8f1DUpBrg4cgsHKxROwwiB+z+8WY8IrvqQX4BPZIzOYV1Gig49gKVgZGI8wryq5IsJQskgwqc2/o8yRMwCShB7oKzqNjeYdnM0uxfI0iUHz+8KExZ+WguxW36PdVWzRCNI4xJ+kSsxIYbCgIq3Nj1sip1rY3apB62iSeAQqDNz56544w5AoCttLeUpD0Fhhtr462m2bQRirGYcoAEdTmJpSs2Seoi+srzHdamVZv7g0cBlFFvrrzMpfu0A80Ftf0i+ePp0jML022Hh40Ue3az8Fc/t5Sr1H4jPC9bGfkXx3uWRJXVnCo3NyKeVzxFGZ1yDhmhwEAFbh4M2P238d3cV0KIJbe4aJVIBqgyBrcJ3wOqA5gdIxPk6g3wIkB5tzveiXE8gNeJmkL5vuX2b7EBpufahw2RRw7b54LvW2ag7eCTaBdE9KNURzqUcJzTRcLEHFAKvncY3zSKEqZ0owOLQdYZkIZwcmJMy4XQj3Aa26dyW17oTdaHDRxksLy747SnINzptVPGQSVP1ipO/odhK+J k37a6x3d CSI/LPCs9yWwrHkep8ZBSue2TvgWXq5JHNwYcNpMNDGJFWJDpt9SQdyiTdOX0NLEYAgs9MoZjjqg2mOwbtGBnoBVVScWs15ubDbRbEdI43ml6+p9DXbePi6l9nJ6gb25L8bT1KZKROQcwDXIHuugajs6b1p2PGUHcsDJikRnifQs7RAYDdcZrWQrP9o6HjjbJ5/P7pplofTKIN5+9MaJ7Qwxnw+dmWiIIzIA/s+gXmUOqxx8SwYBDA8mGj800FPGn5BV2WQDW1om1PkdK7+T0aZ74W4jS2MY+6B/epm2mxqoFljo= 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! [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: remove stale fast_find_block flag in isolate_migratepages mm/compaction: corret 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 | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) Reviewed-by: David Hildenbrand Reviewed-by: Baolin Wang