Message ID | 20220704132201.14611-10-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 AEB70C433EF for <linux-mm@archiver.kernel.org>; Mon, 4 Jul 2022 13:22:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 191926B007E; Mon, 4 Jul 2022 09:22:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1156F6B0082; Mon, 4 Jul 2022 09:22:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ECFAD6B0080; Mon, 4 Jul 2022 09:22:18 -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 D598A6B0074 for <linux-mm@kvack.org>; Mon, 4 Jul 2022 09:22:18 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id A1D6A603A7 for <linux-mm@kvack.org>; Mon, 4 Jul 2022 13:22:18 +0000 (UTC) X-FDA: 79649481156.23.B83EECC Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf17.hostedemail.com (Postfix) with ESMTP id 7FF4140059 for <linux-mm@kvack.org>; Mon, 4 Jul 2022 13:22:17 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Lc5z52SWyzkX8n; Mon, 4 Jul 2022 21:20:49 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 4 Jul 2022 21:22:14 +0800 From: Miaohe Lin <linmiaohe@huawei.com> To: <akpm@linux-foundation.org> CC: <shy828301@gmail.com>, <willy@infradead.org>, <zokeefe@google.com>, <songmuchun@bytedance.com>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <linmiaohe@huawei.com> Subject: [PATCH v3 09/16] mm/huge_memory: fix comment in zap_huge_pud Date: Mon, 4 Jul 2022 21:21:54 +0800 Message-ID: <20220704132201.14611-10-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220704132201.14611-1-linmiaohe@huawei.com> References: <20220704132201.14611-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656940938; 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=lRY5scizV52TaGVtH3Qy/9icfQZDxsLbwozTSHTM+rM=; b=te8r81T0u2LBbZ7315UfBwYM5/F/XxkZa1X86qYFuzf1w0CWWmsJwksqfiKIQ/86v7+nxp EmenlJxf3NEOUrDuBUcdJjvS5tIvniYRibeTGvvmyUSHEM+JRESjzsm0DaabGxEJAqboCR Cyuvkn766bOAABM9vaP2uIr5vUH4m4w= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656940938; a=rsa-sha256; cv=none; b=KEZf+Yzo+lN8GpfyA1GqdAi5gGin64pDYdh5oflpI5IwuCWvTY3Ajp3Vx7NpquqWRvao7c edlCA8nK0OBhKkgNO3Q1BGmaC0l4pFpicw2AFkOI7A6qLy+0VZDEl9/ZS823812NZ1EYQl r28xegNxNf8jQ15qVenVahVTpQLNAls= Authentication-Results: imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Stat-Signature: jahfzfyug71nujmrdpmgin4o154kmhdh X-Rspamd-Queue-Id: 7FF4140059 X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1656940937-563989 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> |
Series |
A few cleanup patches for huge_memory
|
expand
|
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 32a45a1e98b7..8a40dc8edb7a 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -2014,12 +2014,7 @@ int zap_huge_pud(struct mmu_gather *tlb, struct vm_area_struct *vma, ptl = __pud_trans_huge_lock(pud, vma); if (!ptl) return 0; - /* - * For architectures like ppc64 we look at deposited pgtable - * when calling pudp_huge_get_and_clear. So do the - * pgtable_trans_huge_withdraw after finishing pudp related - * operations. - */ + pudp_huge_get_and_clear_full(tlb->mm, addr, pud, tlb->fullmm); tlb_remove_pud_tlb_entry(tlb, pud, addr); if (vma_is_special_huge(vma)) {
The comment about deposited pgtable is borrowed from zap_huge_pmd but there's no deposited pgtable stuff for huge pud in zap_huge_pud. Remove it to avoid confusion. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> --- mm/huge_memory.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)