Message ID | 20230711055016.2286677-4-linmiaohe@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 6B8CEEB64DC for <linux-mm@archiver.kernel.org>; Tue, 11 Jul 2023 05:50:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE3AB8E0008; Tue, 11 Jul 2023 01:50:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B1D468E0006; Tue, 11 Jul 2023 01:50:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9484A8E0008; Tue, 11 Jul 2023 01:50:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 79F578E0006 for <linux-mm@kvack.org>; Tue, 11 Jul 2023 01:50:13 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 52DB5140129 for <linux-mm@kvack.org>; Tue, 11 Jul 2023 05:50:13 +0000 (UTC) X-FDA: 80998255506.06.450E20E Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf20.hostedemail.com (Postfix) with ESMTP id 1E2711C0003 for <linux-mm@kvack.org>; Tue, 11 Jul 2023 05:50:10 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf20.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689054611; a=rsa-sha256; cv=none; b=Zvc/dnchaQ+f8357BbiatatV26eBY6SqS3QUjMM4FdyfFFU1ID7V/fcsGxDzmGnb37qHgB sB7TPGz7+NNKM3wvQ2A4zEwv8lRNG0cls82zy2iSmzY/dhmzNh+SQJ4+uPAVtt8mijPc5u FQSAl9sSkNpQLTlZ00c1Ls9Gt4kOEcY= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf20.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 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=1689054611; 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:in-reply-to:references:references; bh=rbVV6E6KX9xBwZyFWx2W1vSds59LeiPIy1pErc9efjo=; b=5TIaGTQzX8N0+p2rVuK56+NMfVRv02vaEB7bve2NYesaTaADWeERbQ+lZ2O+ROxg2Aj+GL a+/T+BjC29OGHWbPiC5orHufC8OC2cq8hk1+EE7NqWn29IR9x90D3ue4zSL7CLENxNTxXb mxsswuaU56fzidVJZEnoSJElT6i+V8s= Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4R0VLd6GMlz1FDpF; Tue, 11 Jul 2023 13:49:29 +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; Tue, 11 Jul 2023 13:50:02 +0800 From: Miaohe Lin <linmiaohe@huawei.com> To: <akpm@linux-foundation.org>, <naoya.horiguchi@nec.com> CC: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <linmiaohe@huawei.com> Subject: [PATCH v2 3/8] mm: memory-failure: Don't account hwpoison_filter() filtered pages Date: Tue, 11 Jul 2023 13:50:11 +0800 Message-ID: <20230711055016.2286677-4-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230711055016.2286677-1-linmiaohe@huawei.com> References: <20230711055016.2286677-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-Server: rspam08 X-Rspamd-Queue-Id: 1E2711C0003 X-Stat-Signature: 45czpk7r7i4ua9nusibu869io9ctem94 X-Rspam-User: X-HE-Tag: 1689054610-131698 X-HE-Meta: U2FsdGVkX19vbonQvxzuPE4XJVzbEz/skNi3knNmjHIFQ/LxcNk7ltARFIoiLE50Imo9rCUOQ3blhGLN1b32wu3gPmKX1TRbRMOzbHcJRUstGJoRa3g2mzVzbQ17M2MnhxRMTiiGdmKoAGVzgTHhZD+gw8X5NCDas+KsyT/PPhPZ7+if2K2gU7JJ0vwAf/zWXaRlLUFqZVqppp4OAzq7sMM2eiZy8OBcmPGD4BQgDwc3yIIT/Z/p1kQzwQmlSSNjmMnFvped2zqp5FwGoSE8paRFPA8VjxGtkrgV1zUCMAggt1qVKAXZpmd7Zefi9HJHFDp8LBUZCzkQ2pHZKfpJ6uFL3L4KLfKwo6q1nK5+/MeNGMUDSpk4uzrjq9obX46vYSJ0Ge4bEFeTPIDeP0t+H5qEgwh50TkHmRCCVMMmXjmWj9uGmjwY46/2ryMvF/D83Cr/gGfuWq49CIGCbOGG4Pr+7LvUcQPM8YACoILLOc49BzNsB1XTuVYwswxpKYsK6sEk8s8Yd8X+su/j6f3PvOeipDzys10/caAB1U2YMCZdJqdKcaTkkGsGA2o7w9FQ8rORYxKGxFQ2+DChqhoYJXvfZImaYZMSvllZcXt1bID5OETfNkP4PoM7iizYxmlEXHn0UTnw/5Imx4a/yIeEIQvQmT+GpnXEw77pwTOYtnZkA/nZPnW47BQF75vzgbnMzhmA3yfBrcPvmjYqT5Dj0Cvx4wg6/dvY+z8f/clwclCNLwLuxjCS21nMVuJywxQe8JGD9pe1FNBMWK1GuC04Oq4m59xyySHwDRSkrF8K5jxn9rze5ZwXtI7SiEKTZmqlmyOy/wqFgbXzszHenMXTtX73YbQcvOs/IYqhY7X96Fvp4Aairf9ArzjQa/J/jmEAOAxGcPXB0L1DQm6pBeZaEi/dJaeKrGp6BEO4WjP/XF2vqmOqCOJ/vJNXg3KqKGPFfaF+MOkXcCETJ9VMv1e rqGkwphF Zmqqy8l89cIzWSmZw52N69iLjTeeGxhDehJhuD8Qx+reCMrDkecpHnmsLAypK86OfHyc98HtwySC59ZNc8HBgfx9qob5nAMXTSNd3C4D846t4csM1aFKWrZZPj0cdDFYUu7/eWOlTs7+ixbiAFraqu7bhnZuar4usf4gKA22OFNxN6UOjPFmaPtpHbBXCELP8R9mKhcKoHtrlFoq2zoeQ2MtVaA== 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: <linux-mm.kvack.org> |
Series |
A few fixup and cleanup patches for memory-failure
|
expand
|
diff --git a/mm/memory-failure.c b/mm/memory-failure.c index feca3c4068a5..c80b7d9505d8 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -2108,7 +2108,8 @@ static int memory_failure_dev_pagemap(unsigned long pfn, int flags, out: /* drop pgmap ref acquired in caller */ put_dev_pagemap(pgmap); - action_result(pfn, MF_MSG_DAX, rc ? MF_FAILED : MF_RECOVERED); + if (rc != -EOPNOTSUPP) + action_result(pfn, MF_MSG_DAX, rc ? MF_FAILED : MF_RECOVERED); return rc; }