From patchwork Tue Aug 30 12:35:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12959268 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 32F9FC0502C for ; Tue, 30 Aug 2022 12:36:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 28C3294000A; Tue, 30 Aug 2022 08:36:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2167E940009; Tue, 30 Aug 2022 08:36:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DFB5894000A; Tue, 30 Aug 2022 08:36:39 -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 BD722940007 for ; Tue, 30 Aug 2022 08:36:39 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 99F00810A7 for ; Tue, 30 Aug 2022 12:36:39 +0000 (UTC) X-FDA: 79856207718.10.E438D1A Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf15.hostedemail.com (Postfix) with ESMTP id E17B3A0039 for ; Tue, 30 Aug 2022 12:36:37 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MH6Bf71XdzYcmn; Tue, 30 Aug 2022 20:32:10 +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; Tue, 30 Aug 2022 20:36:33 +0800 From: Miaohe Lin To: , CC: , , Subject: [PATCH 0/6] A few cleanup patches for memory-failure Date: Tue, 30 Aug 2022 20:35:58 +0800 Message-ID: <20220830123604.25763-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661862998; a=rsa-sha256; cv=none; b=Fs/F6yrxIH+vXcqxTlkYo4WavZ7O9trDtpVnl7/aJAWhF8vWWARmkDQtudVN76Zb/Rz49E WVP8uopFQtQj+CXs/Vr9/7MPIy+ABYTeYi3kjwvKWnHj5l7eIET1qSlRpm4CnKxeaDDVbF cTyEIqAVMN4t3WHRgUxfxQGvbWVsMa8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661862998; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=YBH6FaJ954159PUPn8y1sIRaNFtwLDOMXw0yBaid+dk=; b=LSC/mhCBAJ1qos2ilngIGgtbGro+QJR9d2Da1o+88YLqyt3IWYJdB3Qvdq9ZrRi2RgYSpZ SJXp102tx6zo17srvBwq4RppVzO7ipm4DsmC1CkJmQCnay/VA11cS8FvnjrI0FTldrmHi6 zwBrshNIDEmz0I/0N85sDhU8YxYab20= X-Rspam-User: X-Stat-Signature: rx4pikrpc184pwbkumjcc7wyd96ymt8u X-Rspamd-Queue-Id: E17B3A0039 Authentication-Results: imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspamd-Server: rspam07 X-HE-Tag: 1661862997-263968 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 cleanup patches to use __PageMovable() to detect non-lru movable pages, use num_poisoned_pages_sub() to reduce multiple atomic ops overheads and so on. More details can be found in the respective changelogs. Thanks! Miaohe Lin (6): mm, hwpoison: use ClearPageHWPoison() in memory_failure() mm, hwpoison: use __PageMovable() to detect non-lru movable pages mm, hwpoison: use num_poisoned_pages_sub() to decrease num_poisoned_pages mm, hwpoison: avoid unneeded page_mapped_in_vma() overhead in collect_procs_anon() mm, hwpoison: check PageTable() explicitly in hwpoison_user_mappings() mm, hwpoison: cleanup some obsolete comments include/linux/swapops.h | 5 ----- mm/memory-failure.c | 28 +++++++++++++++------------- 2 files changed, 15 insertions(+), 18 deletions(-)