From patchwork Thu Jun 6 06:32:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13687862 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 D343CC27C55 for ; Thu, 6 Jun 2024 06:36:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CAAB56B00A2; Thu, 6 Jun 2024 02:36:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BEA126B00A6; Thu, 6 Jun 2024 02:36:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6B8F06B00A3; Thu, 6 Jun 2024 02:36:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 266576B00A6 for ; Thu, 6 Jun 2024 02:36:32 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id E239A81197 for ; Thu, 6 Jun 2024 06:36:31 +0000 (UTC) X-FDA: 82199504982.07.DD129F1 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf06.hostedemail.com (Postfix) with ESMTP id C15BB180004 for ; Thu, 6 Jun 2024 06:36:29 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf06.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=1717655790; 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=MMNo8TBUcCJtug5tA7QswZAHuIiSWu9bhsKJuesi12M=; b=ODWAvrcZedbSTcEUjbJ9oxry8Suqi9f6k4L+WVx10IV6QZRNEycd0aBQoILvDJjM0RGNCU E5HexF/tcqLAtAa9y7F2JOfDs4JScPJemXrtmygn44YUzb7JD+PrxX0YEVLOAme+JhXCsx h98pdl08PGylvEKMBIEvfr8pTH+JlNo= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf06.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=1717655790; a=rsa-sha256; cv=none; b=DTtUGoXurFIII2W0TPs2s80zFZESuu3DBOIDFY71zpEyyFEeezm9NjRn6Q0PSv7lESqUa/ tXianj8MiTiykvIxlFSkyCn5NT8QRi/p9U89E1uzLqELgBY0J//pPXqu+ODOuquOcKvwqD 0fvb2+Z4wDwQ3NBd3g026wSt7nzlomk= Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VvvdT41fvzwRlf; Thu, 6 Jun 2024 14:32:29 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 48333180AA6; Thu, 6 Jun 2024 14:36:27 +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; Thu, 6 Jun 2024 14:36:26 +0800 From: Miaohe Lin To: , , CC: , , , , Subject: [PATCH v2 09/13] mm/memory-failure: remove obsolete comment in unpoison_memory() Date: Thu, 6 Jun 2024 14:32:43 +0800 Message-ID: <20240606063247.712575-10-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20240606063247.712575-1-linmiaohe@huawei.com> References: <20240606063247.712575-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-Queue-Id: C15BB180004 X-Stat-Signature: ywo5gptu7grpuz91mwbwqgixqwi5uiof X-Rspam-User: X-Rspamd-Server: rspam04 X-HE-Tag: 1717655789-810612 X-HE-Meta: U2FsdGVkX18WYiLgi0K0ckeCC0VdnwO9yvaxS3mO5WdeTWbp3jlAEn36H3dW9DxOAuLiLSxjGLwN04raVadtgEYl5lzcG1ScOP0sktsBR834LP/dbnnq9oxGe+PsfOkt8imjNw25O/yabvVUn0ekqvBXMoeGsDxF7TTKBObVTof7QUWLCgoLML4529/quLNCga3st46M4dzNkvKKnUMWMJaTqXDWW6gvOlI/1lDvvtgdSpbOseNc7653QtLQDunVCGevctcaz/eY9RYO08ynIfG2jsHH9BrneGa6TVfRUD5TQ3RVnG58ByTOIG4qYC+e6fjo+ODIfRRKAFMOqksvJ5IwLo8XFRRdcCe+irqMnQZbpvyCFqqAxS/IIiwNC0K+1RiybvL10eu49dA+zJRuuf5a9Jgnvep3jhhWa+sdyB8pff5AjAzM4xNLs3aitr5cfHN2P+Fo1+2N0jQw7s3ZbMd7mRrDEm10VMyoW+T03aYs9Xf6c6Uo5oOnvrOG/v0KC2ZMgvECldJYSgq+1WbstB7F6mYDvOjcKjT8kQ58p+fG85rvhbEmKzllKeaVrdy3+1It6u+LytU/0LkNDS0P7T5msxbtTl1MBG+vHAsycPCuj/am2oPT2d6rjiFzF/AjQhwi+9Jlb8YVcUcqGVryNb1joYWK3rh74lMfcvQ1anvr9UGmKkYg3BUfsvlsDOZiSrjN0UpUjuVqDyB4Ttb13sIm24328L9QYvJg+cSZz6MK2ZIBXTFyaSnNjt5NLJdVd1eM34+LXhs/piJm5uG4A6I73goqoe7Rvc/rjz0b2l5SIWG9X44SAsGSxD1QCwDCp2UCWMKmvd0/l9HIJ0/4/Buc+1rT394ptA7Mt7oSF07Og9xC9SaU6xDJ1YPZogoS/NRi3NvSQnNj+2SsxeqfAPHTI87J8GFAc6fBs4voqjUpkDvizmBpugWKQYzbTW9dCKwvxnPBnqX6XAPakqM GBbenCZQ xGEWjAd9YDgpoEMxySZ7KJy7dQ1J99BQsIRDXU0Z2r12mcWyCRed5/qxt2R7qR4paZhewrE/Jena9Xl16yeUboPdBc+wE+TXSjuV/+P+PepyI2TAeBaWCh9xtJr06lu+5x513s6q6MPVARY3cXg3mP4h4hGgqXzIyAgr2bf9qgLuiC5WXp/4xo1vzS5PVXm1/k31ix3E0ThMW39wbofil/dEwOX4BcTGUL/KIV8Q//my0gaizPqoQur12a9q6hDyWqYa7w4XWX7bcyZ8En/TdOEMbMaURskcmgBpU 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 81a544df8381..51df2c2e0cc2 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);