From patchwork Thu Jun 6 06:32:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13687866 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 0343BC27C55 for ; Thu, 6 Jun 2024 06:36:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 311AB6B00A5; Thu, 6 Jun 2024 02:36:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 273FA6B00A8; Thu, 6 Jun 2024 02:36:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 13ADE6B00A9; Thu, 6 Jun 2024 02:36:35 -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 D84766B00A5 for ; Thu, 6 Jun 2024 02:36:34 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 945761212FE for ; Thu, 6 Jun 2024 06:36:34 +0000 (UTC) X-FDA: 82199505108.24.32C0C7F Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) by imf26.hostedemail.com (Postfix) with ESMTP id 6BD94140004 for ; Thu, 6 Jun 2024 06:36:32 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.35 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=1717655792; 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=2TRP8tL1Yx/I22Rea4z0uz6ILpEulqMsf0oPfl2E+r0=; b=XfFCKlM1fOdDnfMGCELmnthTqE2qdJnGFE2kCFxrrypQZFDdYnKhJuf+YUAPnIZcXdImgO NzY0kW51PnJ3GFJBG5zsGWAr4ljlyxiV7mkqzNgX0xrwzvrRpndePjdr0JCEjDzBUjOZ1y yB7sOCqKXz949lgGepj0bQs5VqcCTVg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717655792; a=rsa-sha256; cv=none; b=HtZ76i5uE6UXzGgFcdbxhcpBh+M+IP5Pr7oZIIqsvqn+IiBJxefhuMG59rcXxntllyFKxz 0pyGbyAnV6DjUO0lfS1DbkjaR6fo/pTpd+SgQfIO+gpg49gUh6UD3nn0flPbi7bQUbAOcc KBCCPBh9kCl7Sbum8eqw8h1NI2Vop2c= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.35 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Vvvdp6Dc2z1S66Z; Thu, 6 Jun 2024 14:32:46 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 58DFE14035F; Thu, 6 Jun 2024 14:36:29 +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:28 +0800 From: Miaohe Lin To: , , CC: , , , , Subject: [PATCH v2 13/13] mm/memory-failure: correct comment in me_swapcache_dirty Date: Thu, 6 Jun 2024 14:32:47 +0800 Message-ID: <20240606063247.712575-14-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-Rspam-User: X-Stat-Signature: h1sjbrfextyw3zjw54nubwzbddu1ceps X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 6BD94140004 X-HE-Tag: 1717655792-36441 X-HE-Meta: U2FsdGVkX194daAhQtsQFEQmi26r5/6H56scBdVyNxWWVc8IJG70hL0y6ZgQds2KDraFJmmYNX0NsfB9WvJZGHjCL7QLLw9fp/3Te2MB8I3hM4nqJdeeJWu9KTFXOAtxf0LtUBwimYsCf41NPB24Hog5tRu9mo2O15BWVL6zqSo91nhSTpg8Bf/NkdhXsLXIFQOXpviwk5c6uiNQmR+HCz0RBNbuESuFNK90yMun1SbG6r/3ozKP6m6IBpTgMU48/FdK5+H5WggPAo6dLgtd0VL2+Zss5/tizzuD6BjctMMOMJe6qe/3g/160hAp+drnv9sARSOEP8/a29YAhPZ4+IIx1pTnyTj9BbnSi6thBdSMKDxn7Y9x/qZommv0Y7f7mnN/t4VQL/snBJcFOIukgvqP3us4HYhl7zHK7L+UzmF286tRD4YFkrpuyEbWYLRWLjUHS+ytZtlSS/qQ0Yfahr4JoOlc2gAZG7HOFI4FGZKhVj+EtjMMR1v4N+9cYj6QT62bk3+ByccQVRmokZPmvXZ+TAYo2oW8dxtgAbhAvEM2e/d6za/skCkGZImoYBE3YMJiqXCKOxB4Ab99FXM4dVIpo1xJ6uyYnN2CVmew0lA4ou7XynF6x08UZ5p5bVA0CFdQVpPrlR3+8zwmAF3mXwqPsn5dkvCa34uTbeXc98Wz5/KcvGAc0grVWKqR2tDbFDvo4nI2Wn7tyVI/YJDUgSlE80XcatoqgkemX05zW2Gs0qVoNM2eKkywrw0cSYu5Hlcg22cqFrALSsMd35PiXjlqdvZ1swLjX8rn6cMrTbVpI7UCdJQAU8AUIC9p59lN81hyO/qxuPCAwyARJqmJqj6hcvd31MPe/B4L8VYtNAqp7OeXAdcbZsBcrrTKJYU/nGCqxlA5ytH2nmYpcDNFpJPUsKBX3JBagHlSWPayfBdRkgNLUz2xXPIExXR4sbNV4Iwu1M1/Hho1Vr90nJZ qaEWQYtk 5zzjiIJfTBZNNTO5mEk3wkNx7couxQ8e+aiNLKOLCMx82Q1SI/uAFCUth9DvGmWALgMycYRL3/kRPUfbH6YpNaBjC0lNJnsa+Z5AIkJYUOCSxHxUKjYo0oCVOc5pCDIahRE+sFWfK9CzcxnH9+iBLCAg/PEuAYdDtep+YDRuFSwd7wiElraqtcXjfgMxyLqm3FENTHxBAYmPkNiXm8Hu/UvrpxsyozA9cPfV7XOmuD9sEeIaDAla3rc7hiHyOvOLbcDduCzkvmw8WqMQ= 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 161bdc79b44c..4fd8ab8fe3b4 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,