Message ID | 20240612071835.157004-12-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 B6B85C27C75 for <linux-mm@archiver.kernel.org>; Wed, 12 Jun 2024 07:22:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3F1DC6B017A; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 32D3D6B0178; 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 17D696B0175; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id E0F606B0171 for <linux-mm@kvack.org>; Wed, 12 Jun 2024 03:22:57 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 99E911C0C37 for <linux-mm@kvack.org>; Wed, 12 Jun 2024 07:22:57 +0000 (UTC) X-FDA: 82221394794.10.DDFD75A Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf27.hostedemail.com (Postfix) with ESMTP id 7D82B40016 for <linux-mm@kvack.org>; Wed, 12 Jun 2024 07:22:55 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=none; spf=pass (imf27.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=1718176975; 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=01LrwiT8pxaCH9fLqlWEyOZ93Gkk/zNZK/bpe0t6A8Q=; b=mlRrPcEFlczHXuaDLKRL89uVwGZ/O+PmE8XVcQk0mTpsZmtEZaKZrtX5bWaIdKTjb58Enb cob7yr53HrvyKrGp1nX2h1eI01AiKoWNI8M+lJyxaWa+u6T/YtIhELIpioBQbPEKoT6pcZ +yXFdX/DVC56oaKtOGUCX5MFKBjBnns= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; spf=pass (imf27.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718176975; a=rsa-sha256; cv=none; b=8AFaKm1y/AeEWR8vRhk9c6Hp0LnFWO+T/wX4J4hXl8VDKBx13Xw5e5XQeA73Qn1WfkUqk4 vncOiec3+uM+bmdz+EN9jV7S+/mio9sYXqE1tOQaIRk9lo8CCebJ30Yqg/1mLJ2hKiVqwH bqAh+EidoToGulaWbOkndu/Qunwv6Rk= Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VzcR920tHzdfyD; 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 8FBAC180AAB; 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:24 +0800 From: Miaohe Lin <linmiaohe@huawei.com> To: <akpm@linux-foundation.org>, <tony.luck@intel.com>, <bp@alien8.de> CC: <nao.horiguchi@gmail.com>, <linmiaohe@huawei.com>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <linux-edac@vger.kernel.org> Subject: [PATCH v3 11/13] mm/memory-failure: fix comment of get_hwpoison_page() Date: Wed, 12 Jun 2024 15:18:33 +0800 Message-ID: <20240612071835.157004-12-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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 7D82B40016 X-Stat-Signature: 8q3b94hnc36x17zjy4ektz38zu6g1r4y X-HE-Tag: 1718176975-227092 X-HE-Meta: U2FsdGVkX1/b0Q6QtqqfDLYqRy6LysCVP37yFmkB55EyBsm/SaLnRWQhrrvG9MDdmRqv+VM9fQikBvZqZhfm+MIScpQWNXfJSqMDnqPSuqj/IJVBKQUAzLQbE6LM3XaB2xK59IVOaw4t6MnmdTCGTEnhVNFYh1gcGgeYuM1ntzO0gEGcmQFol2/woSd2D5GMupR+xR5Tsrbp7/aiUc+TFhDUIOr0ifYhidUT+im8kscNBWiurJJECYtmp7c58r0lNt8PyvlPGitOGd6PH4L5V8ZoGv0l4gSHB9uM8auJWNBww8RkMM1Xztuuktb2QiNDgJkYkkMuKntmdqH/RiHIhrudAxMGdBRtJyVs+55ByRTCDa1WjCbd4yDfaKIe9Q5VQbv29oNMMyp23YIIEIW/zWRoH08CwnQ8+8ARhU0W0tHQHU0MPeAh5207xZRcSRW5pnmOSIaIyyIC3A6CcQBz1LsKRWs6dHXqk7j4iwhHgqHO9RzYDYnbKyqQ2Zw9RHBIIIl3huCx9CnzPfqxiuMORaJf0+/Nj7LAMzs2trr840kFez4B81xFPu2n4UPRdHnKhdZZFL+10K8tBbzNYjos0peolIng+SMng887UWZJQIbUAmuqPp/kK9hj0K3OlevOAssVu3GNOiGoadJmyAAsLZENMq4UKihaFU0wvFr/xR34WN9QwXVqQ6ifopDM7qChFx6W5n/40yWvZcpivtV8lFxWXjS6+2+rRgtpRFumsH69eUF/jfzDfaknvoPOqOQIYDzHCb+InjYGGNR+tj0wyZ2xECRtVT4Kix2A4Kwt2Grph7xXAfq4MZ531GJzFAeGPnw7PxOAD0d2MkJJ2nMZXh0yHib2Op+X8zKzlFuQKN/xc39PG2AlFYdlt7n8FGL9i6kXriAAYxifgMDKqFSx4b1d7yQYdfwESAze33CCgTNl8iw2PoKPamoRFn/I4yW65/vnoqnZSWEOPzF96ER bjrYtXnE dx7Emx9Xc+npjw5oLfopprTRmnKxxss57xzDGJJv7rRTXhSckOwjfKq/qd0jGqIGcrVnVP5/ZxA2lG3TLOfDs2dQCMJulyHhzF/Unr6MwxDun4LDCxz34NTPUBRp/xWvHeErLkb/P2ehxkP2Rc2cvCgXFipVWecQAdB/vIET44lT5xYspYmCpSrn0RO7suPA/anA0qLt5ErXiiira0RpIF3lugFmd80bgkj0qAgxi6xoyQp0i/AcjTSFezUk+Kmq7QffaQwi6HegCypY= 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Some cleanups for memory-failure
|
expand
|
diff --git a/mm/memory-failure.c b/mm/memory-failure.c index bb8e79381c1f..475524f79550 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1525,7 +1525,7 @@ static int __get_unpoison_page(struct page *page) * the given page has PG_hwpoison. So it's never reused for other page * allocations, and __get_unpoison_page() never races with them. * - * Return: 0 on failure, + * Return: 0 on failure or free buddy (hugetlb) page, * 1 on success for in-use pages in a well-defined state, * -EIO for pages on which we can not handle memory errors, * -EBUSY when get_hwpoison_page() has raced with page lifecycle
When return value is 0, it could also means the page is free hugetlb page or free buddy page. Fix the corresponding comment. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> --- mm/memory-failure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)