From patchwork Fri May 24 09:13:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13672906 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 1CD20C25B7D for ; Fri, 24 May 2024 09:16:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 67E1F6B009F; Fri, 24 May 2024 05:16:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 607736B00A1; Fri, 24 May 2024 05:16:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2670D6B00A5; Fri, 24 May 2024 05:16:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id D52396B00A4 for ; Fri, 24 May 2024 05:16:35 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8C1EEA1E5A for ; Fri, 24 May 2024 09:16:35 +0000 (UTC) X-FDA: 82152733950.22.5C834D7 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf11.hostedemail.com (Postfix) with ESMTP id 56B4D40004 for ; Fri, 24 May 2024 09:16:32 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 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=1716542193; 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=yv/+MUqQc1ZxdzrTulGlIxWx5smDndiSiVS7kKe8Avs=; b=OtING2NfGRPgzIcX7CHAUSUUmyCHM4/ZTfxrxU2nTfRvtsqV/E6lT9MqOM5z4f5MpEa5t8 m+WwME4BUSLxtADe2/L9LZpmvgCU5d6yZL0DdvtMGmclYCJFbQJXiI2TDNgPcJ0Pjj6YQF Ha/u8fJ18cujfZW+8Q9NZ1gJ35KsTNY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716542193; a=rsa-sha256; cv=none; b=AYeh7VzcXUHRiOlK7VFYe76rvP5zHj15AmfWr+hHhZtK10HPAoF2+ug7gtBi6qUfQMwaI4 gV5oChBsGkPSX04M0STvzmh4I/uQc8lybtCnVxyJz7wOZlO1KTOgR5VakgRMTn1JF6cqwP Ew7Q6b5h6LzzmLp7EDZ9pue/R+XGBtc= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 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.174]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4VlzpT6NSWz1S4rl; Fri, 24 May 2024 17:12:49 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 803351400D1; Fri, 24 May 2024 17:16:30 +0800 (CST) Received: from huawei.com (10.173.135.154) 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; Fri, 24 May 2024 17:16:29 +0800 From: Miaohe Lin To: , , CC: , , , , Subject: [PATCH 09/13] mm/memory-failure: remove obsolete comment in unpoison_memory() Date: Fri, 24 May 2024 17:13:06 +0800 Message-ID: <20240524091310.1430048-10-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20240524091310.1430048-1-linmiaohe@huawei.com> References: <20240524091310.1430048-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.173.135.154] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 56B4D40004 X-Rspam-User: X-Stat-Signature: 49syuhwhfu6ddz3hqesibbrw7ekofch6 X-HE-Tag: 1716542192-39667 X-HE-Meta: U2FsdGVkX1818sDEUrChb89KqLuqY2lMN3APQrMvFtGrgqz/3CkiVwjwviTt36ZDix1EK1QPQFn6T7lEHJG+8IpdR06c2ylStQbxFwixF93MQ3RVLrAN8n1ZIajG0cyj2lLogpuNBMqzByPthTgPyAGW55HDo6kYwg+Ebij06ca3CmYbgS30llbz0UVgetbBZJbRXjjVYP/h8Z+DLLC4RnS9hMakbRs6HPD+KSVKSOcnGI6UrsBphBLp3u5hmU7D2Fed6NmIHTAwEEbwSNd/dKxRadniG6HE+LSzlbwb0HaeTfPUBHJoh0GLTH2jN/xubfxbQF0kiF5Gvd0TkO5D83zMu18zgXQfQXO1kFuFa1upOlbqxDfXusb3kTwwyN7s3VmZGVb2mR5wm6jYgIQU8JsHe7/R19jTkni/OP2tjpdlVlYtF5fdFWedZ07qFHkYIXbpNSs1jqTZu/vn7y/hSMkNEpLzYxf4G7ofFUF8PrHhH6eezZOqbD7H4bQdG8/F6dXoFkEHN3QHg26vemzgYHGmnWCBSMAX8yv4hWsTN6XsuI9zh0nn9/f/zqNUrGmpjVR8vN43spM+xgUWPsEZepOBv/2mjtWv7n7BjhbNnwkX7WuzazxMU0gVr3OF6F2M5E5+jauZXikPRLFUl1BIUqdx8954ztaw+NvQ06d8ozeNVzL7Y0x8w5S8Tcws1vS3zV8bRhmZ3Bzo8UokEqJcIlxlmREHCXhFX2YBXV5gmmJDHmmK2EfzJum7IL9OhNjJl0jyCopDfSxedSL4/L0PLP002wq4E3UrQiUU6m7GMAQUhGcjDNmzrNGoNCpWqSlyFy/cLJoq/JmV8CxFRkG2HcWxJF3XzZMpOkOnurJaNZe1gHGsj85PnElOP8UM0Xw4tGTQleoGZA5xU2crN3eKvZYU1AhuSSNVQs9CO+smImaQcmDR5jEBo0Yup7qTgy4kNBjNYKatBFUDPgTS3ny Kf4TILA/ M4ALKweGPODx8v8EYtKeGllBfS9Ilh2jwJqscfa3m2Ukva+EoS8SPEtRPbOmKAoBkgFESskM95oO1OvVnEwlHur5p1K2+v4yhCnv9sIRaNzc8DxLX3Gr+XC8FAm/DdnaCV5j6FD3SZQ4fVbHgBFZY3OGBYxrTEsPlhgdnvfCqmUn8a5EWF525TAhzoUBdiXSlyPt3aAMf8zYTQr5BkcGj8WKs8k3Yd0v4gVe/AqX7WRt866PYIF/29BLjX60PV9qMjJzV 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 19d338e83e43..e4252f297d41 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -2610,10 +2610,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);