From mboxrd@z Thu Jan 1 00:00:00 1970 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 6DEB1C433EF for ; Mon, 18 Apr 2022 14:12:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1CB156B00A0; Mon, 18 Apr 2022 10:12:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0FD796B00A2; Mon, 18 Apr 2022 10:12:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B3C786B00A0; Mon, 18 Apr 2022 10:12:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.a.hostedemail.com [64.99.140.24]) by kanga.kvack.org (Postfix) with ESMTP id 857266B00A0 for ; Mon, 18 Apr 2022 10:12:33 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 4858C606A3 for ; Mon, 18 Apr 2022 14:12:33 +0000 (UTC) X-FDA: 79370190186.04.958253E Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf26.hostedemail.com (Postfix) with ESMTP id 88051140007 for ; Mon, 18 Apr 2022 14:12:32 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KhplN2TQmzfYx0; Mon, 18 Apr 2022 22:11:44 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 18 Apr 2022 22:12:26 +0800 From: Miaohe Lin To: CC: , , , , , Subject: [PATCH 00/12] A few cleanup and fixup patches for compaction Date: Mon, 18 Apr 2022 22:12:41 +0800 Message-ID: <20220418141253.24298-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected Authentication-Results: imf26.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf26.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 88051140007 X-Stat-Signature: ct1cngoyz6xtt1qghpmjggjpqyuw9yz9 X-HE-Tag: 1650291152-30373 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 everyone, This series contains a few patches to clean up some obsolete comment, remove unneeded return value and so on. Also we fix the possible NULL pointer dereference. More details can be found in the respective changelogs. Thanks! Miaohe Lin (12): mm: compaction: remove unneeded return value of kcompactd_run mm: compaction: remove unneeded pfn update mm: compaction: remove unneeded assignment to isolate_start_pfn mm: compaction: clean up comment for sched contention mm: compaction: clean up comment about suitable migration target recheck mm: compaction: use COMPACT_CLUSTER_MAX in compaction.c mm: compaction: use helper compound_nr in isolate_migratepages_block mm: compaction: clean up comment about async compaction in isolate_migratepages mm: compaction: avoid possible NULL pointer dereference in kcompactd_cpu_online mm: compaction: make compaction_zonelist_suitable return false when COMPACT_SUCCESS mm: compaction: simplify the code in __compact_finished mm: compaction: make sure highest is above the min_pfn include/linux/compaction.h | 5 +-- mm/compaction.c | 87 ++++++++++++++------------------------ mm/internal.h | 2 +- 3 files changed, 34 insertions(+), 60 deletions(-) -- 2.23.0