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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56168C0015E for ; Thu, 27 Jul 2023 11:56:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232143AbjG0L45 (ORCPT ); Thu, 27 Jul 2023 07:56:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232716AbjG0L4z (ORCPT ); Thu, 27 Jul 2023 07:56:55 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37F182733 for ; Thu, 27 Jul 2023 04:56:52 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RBTgL5ylgztRbt; Thu, 27 Jul 2023 19:53:34 +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; Thu, 27 Jul 2023 19:56:49 +0800 From: Miaohe Lin To: , CC: , , , Subject: [PATCH v2 0/4] A few fixup patches for mm Date: Thu, 27 Jul 2023 19:56:39 +0800 Message-ID: <20230727115643.639741-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- v2: collect Reviewed-by and Acked-by tag per Matthew and Naoya. 1/4: a better fix per Matthew 2/4: fix a code smell per Naoya Thanks! --- mm/ksm.c | 2 ++ mm/memory-failure.c | 32 ++++++++++++++++++-------------- mm/swapfile.c | 8 ++++---- 3 files changed, 24 insertions(+), 18 deletions(-) -- 2.33.0