From patchwork Fri Aug 4 11:04:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13341178 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 334C4C04A94 for ; Fri, 4 Aug 2023 03:04:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 018F12802BD; Thu, 3 Aug 2023 23:04:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EAA472802C0; Thu, 3 Aug 2023 23:04:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CAEB82802BD; Thu, 3 Aug 2023 23:04:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 952902802BD for ; Thu, 3 Aug 2023 23:04:49 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 68B3E80623 for ; Fri, 4 Aug 2023 03:04:49 +0000 (UTC) X-FDA: 81084929898.11.5DC3A13 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by imf06.hostedemail.com (Postfix) with ESMTP id 4BCE3180011 for ; Fri, 4 Aug 2023 03:04:45 +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=1691118287; 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=KiN2V9IFF9DcCoLfRn277/EmK0BohyUmXTVAeTT4J9c=; b=dmWNrzSCwHnTcbjzkPFRmUcHvxWkdrKVXjVLts9QP1D7jlv5X53SvttrMF3wzQ/o5huZfd WfCi9zJ2wu0C4f1uILoRo9ELkihnnIBRf8a6COZ+bdYZPGnEbsne9b1An9Y5zt3yIq4Ne0 l9g65bxJdjcVFfz/2nnM4moy6wG17gU= 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=1691118287; a=rsa-sha256; cv=none; b=v0oKlrXPMRPV03cvh3elXWIQlmy4McByb5aT7A0zIL0Pg6gLvnpMmMoImeoLXJuKSsPoBU iqo35+V57GvGXyyaPCD1dmb8dq6C71HBpGZ8ZftbQPKP9CYdOPVy/UjXOYohH9Q3e1OviY vz55uF3hrFoMsDE9CoE4ka/klMTDeCk= Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4RH9YM1WLVz4f3jMJ for ; Fri, 4 Aug 2023 11:04:39 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP1 (Coremail) with SMTP id cCh0CgAXODLGasxkWSvZOg--.12542S2; Fri, 04 Aug 2023 11:04:39 +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 v3 0/8] Fixes and cleanups to compaction Date: Fri, 4 Aug 2023 19:04:46 +0800 Message-Id: <20230804110454.2935878-1-shikemeng@huaweicloud.com> X-Mailer: git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W8JbIYCTnIWIevJa73UjIFyTuYvjTRNg AwUUUUU X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Rspam-User: X-Stat-Signature: ds4exmfzabf1orqubx7m8apa7hn19qzo X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 4BCE3180011 X-HE-Tag: 1691118285-18285 X-HE-Meta: U2FsdGVkX1/SjbzDbdA3hUrqHlcX7CJC2Drr+kDZo+uTaBeM2Gt0oCXQ6awONQg98EICW12j2iI+4WECDU0axv9+yJzzDjoeNKkDn+EUwyxWKJYr864R6fk1CnRzNHxEx45s9mZd8o0G9tVEMYBGtpKpOJGhDjtLKc7z8ZXjxi7HHXhhf65k8Y6RHhIhhXv2S5P+6SVRHgwk/M71B+Z3gacaaEkJQUTWp7auBOSYCEhDH2Kw/Rj6miLCmv3lE8R5WhsLifHuOpDBlH24wcngXeEAlIOfcSf+HubLo2b5r/IZG775whJO1qZMK80sxRQdUaqzj5ABOiDlQSjTQkLwkeIH4IugllKzGEtluP1VPF/geODo03m6PZ3njOhw6RoZtIMevgtl/T/MyvLiI0HoS5BW2MjPTJumXJ+Wkt45Iad+A+Shx+XFn/ulyG3+T8acnU4Z8GDiTCQoUi9X6i9dfMdxbD+yrhVcjKlWasQ25qujVw5XcrCo+pGNDk+ZdbQZad+Ayvs1XqCQ68RI8Z9iI9SdF/sih7XKMWynmmBV2MH8Qrs1BlJ7sko8KIQfyYPguscZbCm0bH0ybKgu2VTsScc4SuK0fWvQ7ySPx3Rk8bfxq/4ZQp8E35xn6vHAoRq2efbxejigPOkyicBGFzrDHh9pXf1rGK0rePs6b/cNpdj62jlf+S8C2KRcFYlMOhcjjAIALiGnZeIN7Gs7B+iPBBdOJPqtbVoazudfQhTk9O8k9iGr7fEGBWH6uDNZxzFGi6OIOcqmYHl6yEZotquv2LbilYVv+OJxRXjdZWNGPJeN+uu5OR1NI/IqG4GQN1aWyl4kfIC4ge2htTnAmi+d85l1y7RBEhSeDBYSmHz4TsXQTJZlzDTH8QZRf2YrKfllGisQNxxi14o1Q0pM4Uyc5RLy9vlhrUllgM7qvsk3ODQbkP3QEGD2mNbQK6hMD2yRZBsCi8dDF/fOCTK8MbM UgJiq6ON MoZqOSGL8weIYyqE7wE756D/S9ljZUVTxgLh2iyeb3Y+fvtu4N4woX/jRY4aAwOPmg+K+S2yJLcqU9DezmkV5IkcA4Xkb20DeJCU5r9sXRay1LxDjy4IKIwV8c+u2FXJOolwzm+MeRLwA+j+eG9kewaiz3G2HlhDNwNRvzlR2PMQvw2IyR4EpBlAS/S0WxZFhcWnuH1HNZw8QIMY= 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. v2->v3: -Improve comment in patch 4 -Collect ACK and RVB from David and Baolin. -Rebase code on current mm-unstable 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. 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 | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-)