From patchwork Wed Jun 12 07:18:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13694537 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 F2B6AC27C53 for ; Wed, 12 Jun 2024 07:22:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 886626B0173; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 835996B0171; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3EF9E6B0173; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 1A1576B0176 for ; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id D2CF8A1311 for ; Wed, 12 Jun 2024 07:22:57 +0000 (UTC) X-FDA: 82221394794.25.6E50A89 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf25.hostedemail.com (Postfix) with ESMTP id AC355A0008 for ; Wed, 12 Jun 2024 07:22:55 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=none; spf=pass (imf25.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718176976; 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=6/SHcDXQmxSpVqTpcobBjGNnzV6AdTQaqbwaxqEL69Y=; b=kd0gQ2GfkuIuLCNZSCUilQFusYV/OEeDqB/S6VKgyaSseSh96pNRYqqj8yNVYTJv6xnaP6 lPj5A9BNpF4Funcy1JQ3ctgbz8t+cW4WCSVGzTxTrwyyDIIca4LNh0RUpheiGdUi0rikik 51VXGAFlzofYXn7K1q458HpJKosgoZY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718176976; a=rsa-sha256; cv=none; b=0bGN3UYacL38qJauJ1VDg5RmlIdG0mlRzuqKQG7R/OZkNCQelu8qgAMEma01EmAbLdCTAL OJXi/qqvU75gc3nObeZvqOC6lKtLlxSyhn7+tobjfPyfBMpTKMisYOGr9Ez0UsbYNANyvp 3R8BL3ebyqpXodXKrVEyJErbvNvhKgg= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=none; spf=pass (imf25.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 Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VzcR91Vjfzdfth; Wed, 12 Jun 2024 15:21:25 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 7C8D7180AAE; Wed, 12 Jun 2024 15:22:52 +0800 (CST) Received: from huawei.com (10.173.127.72) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 12 Jun 2024 15:22:23 +0800 From: Miaohe Lin To: , , CC: , , , , Subject: [PATCH v3 09/13] mm/memory-failure: remove obsolete comment in unpoison_memory() Date: Wed, 12 Jun 2024 15:18:31 +0800 Message-ID: <20240612071835.157004-10-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20240612071835.157004-1-linmiaohe@huawei.com> References: <20240612071835.157004-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.173.127.72] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-Rspamd-Server: rspam03 X-Stat-Signature: 1179kk3sauuznxrewp64f7pjptfgf88u X-Rspamd-Queue-Id: AC355A0008 X-Rspam-User: X-HE-Tag: 1718176975-703233 X-HE-Meta: U2FsdGVkX19q6wZbImvz3wdK+XloOw8FuEfR/wpgz6GkU7vfEwLmdEo2bIyAYkTxd9a27gsl/tittfzw+VGkrBVqW1TOP+9FtrSl4w7U6utZBJIbHzIcIX2zDKVyCNWmM/LAqpy193sHHM+pa0coSdIWhwX3qJAMZm6HjUH7UVWqog8jLCu6unXlI0arJ64Yq50wuXz3Vf2io4H2cEhu5N25BXx3M9lPcMTr5sEau3i8OcldQxB6vlxKGL4HCYYHar0tK+VG0GfWjhR5oi4UkLvqrrSG9apJS5WvNdjjZk3v40ONyHr10+0nGOPFz1PY7NJU0f76h06vx8p14LMZKQIYL0YeM0oxpz/sDnvfs49yGpBvSkCP4Ul1fasRhefc/0lt++zhdpIzpL6pQMvHkCfnTNa9XOZArqaWTfJ5bqKXtqX6vhzbLafwUUuGCqOx7ZL63DhRq9TSPAxnyAYD2I/bXc53oPuuDcdRErbkz+82/JNxDRoXtM+4H6MxnlK2OKSbL9a4fXIhmLalkuZj4VMafSdj2xIO9Dpc2BtxEINHdp4/iCP0TEAYN5CymEP8xwnakxKYIg3TQ+Ycmx6ixr8C3n7NUNMfZC2f//H5Nr75WYG1eUaxrWTpg3S2gBlN0HXvR/G0NPtDzbE6I4JaA3kyMjQUC45qC8ZuS0DObQy+47cSG5AbKpPXBzXm7PKjs3czEjkIw142xLnWftNlSBCmItucLrLA5VTuujuPZONT3HeyveFUfF6KyTdxlLMm1WVFADl7v8zS/2Otpi1nYSjVIf4cGNzvveD0+Y1nLLAx52VfaL0GPfNT4JVQrnr9goX8M2TeiZSKH6Cemu2FE4UQjd2hNqykZfAxnBGXNYqU7D4kbTEgoNnKcNwjP+FFbverqdOlTbncRKarTtAnZrcHr3jBMfYdcQuN0eqMfEJB+bQFPbaYAGb3jDACfCdepDsyy80wY+I66o3mNG6 OYmcMwYB cYter66wPxM8clmjjvK17huN1EUeO62tXRacbfd6ca6tI98FJlZ4Z7u5YFgsibOYxugK1zKAekKafF/KUY5J2x83EIRC5fjOuxEHSUChhcLn+7WloA+BKKwnHb3aAs+QpY5zZhQzxawLbLASgecLUm/djOvv8DfiYgToO/q3HkcGBvSdggjjfQZneHknnT+4MGRYdXo/pwbC4ofyrf5MW9eJUN3yEz7xSlv2s1hJ7mFJGi1ES4FA0bsalolh4KciSekrD2OcGzzL+G1ByXqtKoBaQ8DtZNmq6i4IF 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: List-Subscribe: List-Unsubscribe: Since commit 130d4df57390 ("mm/sl[au]b: rearrange struct slab fields to allow larger rcu_head"), folio->_mapcount is not overloaded with SLAB. Update corresponding comment. Signed-off-by: Miaohe Lin Reviewed-by: David Hildenbrand --- mm/memory-failure.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index bd3ab367ba2f..bb8e79381c1f 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -2584,10 +2584,6 @@ int unpoison_memory(unsigned long pfn) folio_test_reserved(folio) || folio_test_offline(folio)) goto unlock_mutex; - /* - * Note that folio->_mapcount is overloaded in SLAB, so the simple test - * in folio_mapped() has to be done after folio_test_slab() is checked. - */ if (folio_mapped(folio)) { unpoison_pr_info("Unpoison: Someone maps the hwpoison page %#lx\n", pfn, &unpoison_rs);