Message ID | 20240524091310.1430048-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 3FADBC25B79 for <linux-mm@archiver.kernel.org>; Fri, 24 May 2024 09:16:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E6C276B00A5; Fri, 24 May 2024 05:16:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DF6276B00A6; Fri, 24 May 2024 05:16:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B84F16B00A8; Fri, 24 May 2024 05:16:37 -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 942496B00A5 for <linux-mm@kvack.org>; Fri, 24 May 2024 05:16:37 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 5450F409AC for <linux-mm@kvack.org>; Fri, 24 May 2024 09:16:37 +0000 (UTC) X-FDA: 82152734034.13.03332D0 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf02.hostedemail.com (Postfix) with ESMTP id 16AA880005 for <linux-mm@kvack.org>; Fri, 24 May 2024 09:16:34 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf02.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 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=1716542195; 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=phgOIkXa6rBcil5c+zSZCbDGf5oa5pjamPGuSRPUw6g=; b=GPF2laaOEzENcQgpVfPU40/wcWGmBLNX451plK2J2qLS/aHn3+e0/aszVjGj5rB6bvfv78 vKZyKi5hia3EfVduwYjuvas0FqVBi63KsyXf2XeRxVVekFUaSMGdhUycGbZREvRXbI31nO 3FpqE9M+sgw4iQRIQN+5I26bwV3XqiE= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf02.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716542195; a=rsa-sha256; cv=none; b=iCkcVZIXb1q8IorIqlQ6xOAplJ1DowtQefS4/DWQ//jyDApn6lqChLhDmKPXKPMjXnBRrn bNmwxo7TAAdEsUs1ITJO/zl2VKON7uUcRDVMghC6vZKuAZJKWAV4ymPHg5eVJzpaNixZLw /zx81nJO5grctSN1aCuRGm1wscgGbIo= Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4VlzqC226JzPmWX; Fri, 24 May 2024 17:13:27 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 7A7CC1400D1; Fri, 24 May 2024 17:16:31 +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:30 +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 11/13] mm/memory-failure: fix comment of get_hwpoison_page() Date: Fri, 24 May 2024 17:13:08 +0800 Message-ID: <20240524091310.1430048-12-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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-Stat-Signature: j1c5qre47zgmwfxwnfuzg5ujjincj7p1 X-Rspamd-Queue-Id: 16AA880005 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1716542194-340768 X-HE-Meta: U2FsdGVkX1/ybAN+8qcFrQsB2F/GIggjubrTeiZQocMe74EFeYlOSILx2o8Vcd3QM7WA/SowzcctxM0AqMreKEG9nlmgimoyL6LG+6LPaBSHeAR7n9XKFzCOTCWWSXOJRPj/+mtj6mckPS2G8wrTRY0ky9W4fcZEfPAD41mOztcXsxz72BJohYccB/80mXjFgr2bW4SJNPAnOa1V+AT928xRzpnBeqiUaSxxIok3VyOCkwtJLThsRI1BWr2+NX+HGV3YHISx8GgJSBkZmstTedRLqM0rVr3BBMH6bTW97ArrQWS7httGcVdD/m63ObX6H05JVzmxFzYX7J3SQGxgq9D8lS+3qkhrz5tIKnDgwVTFVpNtVvTpdo+458PUOeiVXiWOVZKMao01L94UFTvoAlx39TutGtCUn/eo+71K/RBV9XNHzySH6muPxODd4cOTLNhYRbvi/GqFByQewiFOOa8MNzsxY5OVxJjK6n2F8zIpOah7ydRpT76b6Hg9y2LSuLQaohIjOEaTP4/LzzgTS6lDNJ6R1OL4yR1pCCJbCFIzjKev8aTcJYYvewGIcgP2eGbjO3tUMd0RGKKw0OWb2L79xoQZl07RDJnT3U7qkl3uTzztjRznh/ym5YRH7eMI+xjxmUCbZidujjx0mpj53ylyCSsPIOtHxdnFlaIX4Koe9y153tsFuPhQzJjftHKwxQX68NBvvxXpKuYlYlsZ4++5RNHfd0Wp6KStUvNQTrOCYG5sQLqsSO29mx4jkfsts8pLaFZPLTFDx0loCX6YHXjx5dRRal6ZIfdlql2gNhBv2oY017TY/AiWxAwvttQbU1pyhdZesIoUQSbB5brrHMPlBEArs7Wy+53n4Oj0KhCD4HZ5rHEjV50enuFU3Z9qppC97Tl/pkvJupjWcEsuYdYk/q32Pia3gSytK11Iz3zFmeh3G58YKIf0cRd20iSNPEKPjC9qOz7wnRWheyw ltuv6S3U sp1+X0jZuoJCd4pZ+z/3EQVIAuf9VjqA3QznIEi+M66vrrD5JJq7OqMP/ffi07EC7qZMeRfecnXCtiiREG9KHIr0k1ybk4k+Q6GtHaHVi8o2WnbhxAu/hmLdmzSaaoXXhybGBQ9Lzi2rsdyxfHhDrHM8l/NozzYjVy78FfRqny6BFqOxaKCs4rgaCdzCKjQX3MyFa22Bf8jRj7cERpRqMpsvyO7stLIo1BH5D7j0L6l9oLZlI0KGbRgXc7dNMGBuWk9Cv104js7XRTqk= 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 e4252f297d41..705cd0bbb603 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1549,7 +1549,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(-)