Message ID | 20240606063247.712575-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 B99C5C25B75 for <linux-mm@archiver.kernel.org>; Thu, 6 Jun 2024 06:36:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2EE6A6B00AA; Thu, 6 Jun 2024 02:36:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 200616B00A9; Thu, 6 Jun 2024 02:36:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EFAEF6B00A8; Thu, 6 Jun 2024 02:36:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id C80226B00A3 for <linux-mm@kvack.org>; Thu, 6 Jun 2024 02:36:33 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 755B01A11DB for <linux-mm@kvack.org>; Thu, 6 Jun 2024 06:36:33 +0000 (UTC) X-FDA: 82199505066.18.2D184DC Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf05.hostedemail.com (Postfix) with ESMTP id 51A7D10001E for <linux-mm@kvack.org>; Thu, 6 Jun 2024 06:36:30 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf05.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 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=1717655791; 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=ECd9KSuR/kcZcD1R4CBEQsPFnj9iaXFjsw2Gzpf5Xdg=; b=dDH4OikrqbDlJMMTMP7ahj1Eurfa58CZTFymnpLhmjpHzwUdg1AzdGJg5LCfFdFtAXzw9J SmAp9UIPZTpIY+yRo7TOGOwGrQBjRaXmWUmZ/Uy0zlQuEbk6iJ7h8zXXcYvMEV5WsBFML5 +D9eUcuKGyqSDLHJe10b5huGEahX5dw= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf05.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717655791; a=rsa-sha256; cv=none; b=LeJVoOz5+srOVa8Ot0Dt5E1AMV8mSnH0hrT0pFEucnbQ66+7BQizW2BETQHRcLV1Ul+Env oMyA3rqqbRj0JG1vEOLKgS7YI5zDV2kngjgevPHFqSi38tZRTUFowjNbAnuSMIhtXDUAgU n+HJh0YOAelJe1Gg0c/7EtI9r73yyko= Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VvvhR5XVdzdZNS; Thu, 6 Jun 2024 14:35:03 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 488EB18007E; Thu, 6 Jun 2024 14:36:28 +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:27 +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 v2 11/13] mm/memory-failure: fix comment of get_hwpoison_page() Date: Thu, 6 Jun 2024 14:32:45 +0800 Message-ID: <20240606063247.712575-12-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 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-Rspamd-Queue-Id: 51A7D10001E X-Stat-Signature: sar6imy5mhewkhdz3i97yj86mccnq4yw X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1717655790-397925 X-HE-Meta: U2FsdGVkX18dAf7Z/+nHlo8ea8zAcEai3KdG4aT29xN173ghL8pr3UresJrOpJoKBMAd6YvYmNWp2tjUCG1+ovoA8nCu0QVqAgmQvnMqUMfWKl3cbxiEHNBbOvdNDrjM8fkweIWTHrTIwHou0829RBhLn1YHkPMINTeygGuCecAbXB2TwAlY7pMaRNAKzZHuFfFmk3k4+89f3CQ/5TGzlqeJ5+H1n5UT5wHyrXss+/d0WP5RAVVTRSrUyzPy8TmEcJR+/55baXfuUZ9AiQraPU7w9g2TSFtA1JI+zcsHvqP3kBQ5+7EYxpolYuxWBU4iAEkiL9/BjUeozrnyRJ8JeNkTKvWhLeETVtNFteYaN85GVovR8GPSTkWZG4v1qvWOiO/WtJ1IJUK9JPVpXOEQ41jIj5d/dnaTyQKkDtLjmNWwt95Eejueg7/Xl6lSqdmyShnOVRTQBFAfJSpjrkjEpoP/WR8mMiZIFXeKT258YJ7JN+vicztLOVPlVTZV2bw9q0chEDlfY/SHvXNXLLrYHDixVxgmNjngYacrZGyOBzma/rDoDKtdpPdu0YYadK8e7l7mzHN0LFKJms41OSivBOoArZc51qd69pWrgwNKtR2so7vRzlWh6ONE15EWA2ANwndM3ZN7VHH8SbUdWjxe25BYteHCCqF9/oU5x9qW8kWdTJDe1A4d/alHasUr088j3L0LkGL7nExm8hCXYlZgb3KFStWM6ipCeOge9KGUi42s+SiVu/KhPc5kclFeVw1aJThsgHUZdVd6bG3oINdNGwp2rd0XUiGkUmp0e3Sgz44+Fgj5ib+0G71GvC0qHpu2HeyW7dWWGMjlCREcwGB0JTC1Kvf3EFz0RXNiL8k+JwsjZZldtCRN67Qzw6qkAxMLlbIb5OlMSPRoNphcZeL0UqC2ZUjF/E5f/wlV7xN0gSP8rgZvyaDmOZWQWgrQWAn1k3cizfiiOyd2FvWqgac +KA24ALH xESGllPbY0je43g+/BPdtiEgnivVeOhasN+aaKX8cmI1j3AsrRxL456z+XUfV0uqdjpYxATS7CNFvYsd94Bx/QbL3FRa0DUFqAqPVlVRoHXte3rPWPxrOh1Ta/HVll/mgQ5tg0SRtDvet2wbl7eKdfEvzl4QbgFmFtAZ/puyElNBhdJ3H6bpshJ9xn5EVVD8hHttNTZdfZT9bNuPXTmf30xyvxvycsicCCOJlM6eFh8ZTMYyKan5om80NpAaDIsTBzUYl1+kExDFpNeA= 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 51df2c2e0cc2..0d37f20968e6 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(-)