From patchwork Sat Jul 15 03:17:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13314367 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 4F0F2C001B0 for ; Sat, 15 Jul 2023 03:17:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 41B446B0074; Fri, 14 Jul 2023 23:17:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3CBD86B0075; Fri, 14 Jul 2023 23:17:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 29DB46B007B; Fri, 14 Jul 2023 23:17:27 -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 055296B0075 for ; Fri, 14 Jul 2023 23:17:27 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id C15D8C0223 for ; Sat, 15 Jul 2023 03:17:26 +0000 (UTC) X-FDA: 81012385692.20.4B8DBEF Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf08.hostedemail.com (Postfix) with ESMTP id 5EE56160003 for ; Sat, 15 Jul 2023 03:17:23 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf08.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689391044; 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=Q1pKfMpVzF9x2P2i6JBaB1Udzq60bQxzS0Ja2JtowQQ=; b=8EKp8lfnEDvfKqd50SwOqcB4xMg1xp9Th567YyEq1QZCeD7SbuUPTICuJl0qEXunTh9BcJ rwY7pxQpgDsXb9cgv66d0oqWx2YVAeZKsRksxNwbClc/EXKxamZ9gCUw1YgbJ6HB19jB/P cBXCb88I08MlY3WgszONlR/Q3eHwidY= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf08.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689391044; a=rsa-sha256; cv=none; b=AOKOfkIoRoy5ii2OuMRxIHJuAk/qukfSEOH9qTyv3nSdBew8sfICx419QN8HHJISZSVdyp 37F0NIU7P3Z65bDcWRjLnFhzIFvDRoym9qpqs4MOq5h8LxwIe1ftKRgCE14uXEY+HpbZhG 1P+Bng7Ase8EdjsU+29e4G3+9FHa4ag= Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4R2tjj3GrDztR9j; Sat, 15 Jul 2023 11:14:17 +0800 (CST) Received: from huawei.com (10.174.151.185) 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.2507.27; Sat, 15 Jul 2023 11:17:19 +0800 From: Miaohe Lin To: , CC: , , , Subject: [PATCH 0/4] A few fixup and cleanup patches for memory-failure Date: Sat, 15 Jul 2023 11:17:25 +0800 Message-ID: <20230715031729.2420338-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 5EE56160003 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: zfs79gqd51gbfgdd1ostcx7qkib4jd58 X-HE-Tag: 1689391043-134775 X-HE-Meta: U2FsdGVkX19+IGHP1oW51iFoZ+gyG2B9ykL2q7qQWNmwNN//WzUu0Bj2W0ncwqtJX5aNjFsd2XZV62U5SG3SsZUlA84z5froDtY/LMK8lcqIqjpQZ2VyOy/VPXdlLEanb0nwyJU7S6BFOrc1zEPQaJHiSNnyz/OKgZu9XEJmLq3rRep2IjHKGutWUu4awUv0mdnNPskH28OL1wpQHSh5f4TWhdclDxlatyN2O00hZixueiktU1r9pN9Rv+IDLZxIRjK5AKzD42L73LgRNNkX0404nF72fWtGcVOHRApCFZxIKhoWqAL7hDZud7pZkY3vMufON0/Yt2+CbG/btDVTtqPwJDP5juDcwTeRUlv6DVsmQZkFhu/2w7iq8zWaZfrP52H51YmBZt9k4UUkIkViWSieqXPHy24UZ0n2N9TVU0Y7TM76aU8ONLeZ+hwJT3v2E1J5FeGGsSBQfNxuUAaak10xY898TDT4hBk8rOQHamfCabLcEBvlfutiTnRrVd8cLkKqjmUyIHGNpjKaKnHtk5w82UxUKPElm/rbH6PjwqWkCRJw/qG+yEdzGCXn205XBOUY9d3duwvXjlcPnq0LePZ1r8179eniLq3pwLg7uh6InUMVvRqz4ufk3kOAZx+slZ/ZJWjkQJcsYdUk7keRp1JJy/wWkQWY9jIgdbYQYEk3vSxPG6NOeX8mpO8200Y+QDfSPt8LpMQ/HBJzC3mMuQSr43moI2723XpBsj7rUD0LvB3Ltl965N8ot/m+6Tt0e3o8uXeU60rJS1iO4xt+BcMCfZY4/Tt8dt7QkffYF/JECA62d7spcNUQdoBPnnDn6spJRH2GcK5gsiHkzqsxsk6qbGEbiavMMd6bXtl0ob8EdP2F0cMUGBFGBujEoaEfG4FXFVjSwGg+lvaH/PqS0YfBgMm5D3IMqnAss+Wt33he2UCDNkKBMs68JPpgIVG5uUcoKx9kFnmUkQut97S 18GEVrNi NjHO0ek+ACzqj2Y09L7tIo5NtqjDQA4cUDf31gH/llyVavm4NAMyTALwIVA+zfLtUNzEVGtaPOy7dItCkTNeo4tpPSRVrQy/s1LT9MSFEBECteHF5bipcpY91xOxOj5vRFFC1fovS/4s2F1gqCxENuNXSVw== 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 fixup patches to fix potential unexpected return value, fix wrong swap entry type for hwpoisoned swapcache page and so on. More details can be found in the respective changelogs. Thanks! Miaohe Lin (4): mm/swapfile: fix wrong swap entry type for hwpoisoned swapcache page mm: memory-failure: fix potential unexpected return value from unpoison_memory() mm: memory-failure: avoid false hwpoison page mapped error info mm: memory-failure: add PageOffline() check mm/memory-failure.c | 15 ++++++++++----- mm/swapfile.c | 3 ++- 2 files changed, 12 insertions(+), 6 deletions(-)