From patchwork Wed Jun 12 07:18:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13694539 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 BBC61C27C53 for ; Wed, 12 Jun 2024 07:23:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 027516B0175; Wed, 12 Jun 2024 03:22:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C56CA6B0178; 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 799616B017B; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 1367E6B0174 for ; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id C4D564149D for ; Wed, 12 Jun 2024 07:22:57 +0000 (UTC) X-FDA: 82221394794.03.82E4077 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf17.hostedemail.com (Postfix) with ESMTP id A77A54000A for ; Wed, 12 Jun 2024 07:22:55 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=none; spf=pass (imf17.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=1718176976; a=rsa-sha256; cv=none; b=d8fhBAgrkqkjJy/8+rlPPnHjqBs8UW3/vWCMKZ9YlqVWPvzIfBpgmpin/jnf9eHSk0++kE KZxIZNWkjoGi/3wTmp/PJ8DsTvnqd2TyTUnICDSRJfgsLfEdL4i8G0+6r1/geTS6pGMknH nCOZ20r1e+pHmEySoUQ7ERy3YcnEtqk= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; spf=pass (imf17.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=1718176976; 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=7usMGX8smH6mCfbTQeu7r6/CMfpkgeDupZMVSJ0tYyg=; b=BHCU7E05OwQqICsX7RfuoYcN4zccNLMmwlHdG9XqRIk8GDaNesT4ZzNJprkTwyuOc8CXD8 CsVGyjXq4wAYQIS/7DKIv/KWwYKueLyTOE+LL2L84EVUXlWwZJeJcwLCPkrWMiuRRAdAxC FkB0P54c9QHEehaXgDnpn+M5cPUzo94= Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VzcR92RWrzdfy4; 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 A42AC180AA9; 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:25 +0800 From: Miaohe Lin To: , , CC: , , , , Subject: [PATCH v3 13/13] mm/memory-failure: correct comment in me_swapcache_dirty Date: Wed, 12 Jun 2024 15:18:35 +0800 Message-ID: <20240612071835.157004-14-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 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-Stat-Signature: 99ka916qd4jhx8xzsceiz5p1ftq6fik8 X-Rspamd-Queue-Id: A77A54000A X-Rspamd-Server: rspam04 X-Rspam-User: X-HE-Tag: 1718176975-861201 X-HE-Meta: U2FsdGVkX190Igfjrahf/2UCMJBEyegCV19P/FCp2rGbrIVKit9z1hsyrP/QKozuDNvYgmkAevtLYKbLDooOvoRuyve+LOy+/sZaALFe+StAMAiH0tgDaTFIxGFVlKRKYmpzOyI+L+wPlfCJbt5LAT07K8k2oWpIyJtLBJPOnxWHwHm+iSsawI6xU5pDCT38fGeBLOZUNLAiYgtDOqrDfvqxSAukIbRxsQhlkhZWePQ+sqzrqypw0VeA+WU7togGJWnGJW9JXPMpnUIBTczjh3DjuoEfdR7VpeCVe7/6idNQ9R2r9ENhhWcsJR0Nkoig1QXB3Js+4WfRKKMQuTO6PQeecCbxbBdTPWC5gj5zCsj3wt0cptulmdYcfPhbTdR9czdpm4tkvcpg481YzSENsmL8HHzdlhoo5UEgzYJBhqzLtg5FDtJtW48nEtD/sMX9JxBJnIK/sgz5w024yTaw8mGaOu5ks6hRMwGH/TGCCE8+h/3MkyVVLTvqe3FMKi8Y5UP0HLD4+qMp5Px0EMYJ6k+Y+njQ9kctSgNrUsmVWTaw5Pj5/Ur5hPPUR7+K1E6VmpsemybKAJm3TW/YpcAysiQiF4dLJ9dbYVpLwcMkekoM5PvvLfX+tKph2JBocoG6/AYx3uoupQZ/vxQmSbmxrj6MiPxDap6MH6tFL3VLtRXy90b1AtYJJdCvrvUpohsluqvkeY/CqGNp4fdy/FnvROjUOVEH4Re16zSqh+yV6en2Wyh+ddDscPsEX4gh38PpeDoQYi9HRyPhb9FO2WZnnHu/1KinE8jH7hBGxR3mHpQBG3j9dF7oTW5tON0BVhjCMXlOyj7d48iQbJ/pgaM+YOlkOjj6IilVVk1wQDd8TuqStU2eG7xpNTxFHD/TupLQqqxAP1FHf+2vAAoGTa+zKv1k9HQmQqyJGPAZSIQloEzyw7l2P04rxLcvk3o/TNKgnWQJxBHbgqrKOC+NnSh nsus8SGs HfjGyamiMBOpjGHpiXnvPvbr2PXGtrDQl32BQTHkmheS5iEcXWl0Lk+VSfGqboP5/TC7Mk1pEGIFGdvrTHHmMbGwzBTR8fAg5QBjC7Mk/B1prWe5bQiU/WOeXHqoYgRHw8jW5BZZEsCdYWmcoyKTfKBZ14q5oyp38z/GGDiMYtfaR+Qy5cNBXg8M0sFBlB0No7BJMo8FEm2TjiNuk4lIX+BfB6AKbZXLFdFe9DRYHolopJIeAML51VBmOhf8THLUxcYYepVNn09ne2z4= 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: Dirty swap cache page could live both in page table (not page cache) and swap cache when freshly swapped in. Correct comment. Signed-off-by: Miaohe Lin --- mm/memory-failure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 12b516895ee7..2cf7acc286de 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1126,7 +1126,7 @@ static int me_pagecache_dirty(struct page_state *ps, struct page *p) * Clean and dirty swap cache. * * Dirty swap cache page is tricky to handle. The page could live both in page - * cache and swap cache(ie. page is freshly swapped in). So it could be + * table and swap cache(ie. page is freshly swapped in). So it could be * referenced concurrently by 2 types of PTEs: * normal PTEs and swap PTEs. We try to handle them consistently by calling * try_to_unmap(!TTU_HWPOISON) to convert the normal PTEs to swap PTEs,