Message ID | 20230731074829.79309-1-wangkefeng.wang@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1866762vqg; Mon, 31 Jul 2023 01:13:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlEKs0ozDNfc/zpqbRTLL4ydndB2XJs2YSmjN2Yi9ZUjLae4lHyYcTSLCTMQRI3j/auCijpt X-Received: by 2002:a17:906:cc13:b0:99b:dd38:864d with SMTP id ml19-20020a170906cc1300b0099bdd38864dmr5605820ejb.23.1690791185310; Mon, 31 Jul 2023 01:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690791185; cv=none; d=google.com; s=arc-20160816; b=GqBmDGH3G8FhhDEqzUp4PULbog4LYIzO2pP36uTh5ffoAWugecObBTtFphjUwZLWms P1kEoPTp+R9uZ/K81arDG0s+WOZq1XKVC2RrSE6CSRAWeYZi1nIBaYgRWNW0o7/zjYk5 aAQFNyG/vGAI94X1/DHgx/pzy0Z3LOgyv3ZHlEXMyqkAi9fc55GpLEVom+SWiXMBgTlw CG+njT3LopZZRZN1u0GrOKT04t7QEJiKebDDw3aL/UW4uZakKv4py7xidLQ2lECosGR5 ubjxnvYbKZIPKO1AcwHh2PVR8cW1lmJG8YcJTQ6i3boFyS8F+Lu9HrtF6iyh5D04rJrN JotQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=mDAQuWBbkt7X39R2C3cGtjwCMI8WrAPdKzadG9uUiGw=; fh=pWGPqOKfNGLee4HdbDJvfX9Bibz+qaOAq2a2PB8WHto=; b=NqjBrNe1gIG63C+1PJLbkQOsTkT0sewIhCj8mKl3lejtkmiieJf1Z0i01D4UpBzGR4 YiHUbBdQdBP2ZE5PwbZcQBST32UI5y0r833h4CT/4ovuKTaJDMcLnP9Dyx3xnaZyDEHJ Cozxso2UIOA6soDnx7MnumnPsvMgHaqTZwGgajXddACx1X5Ow/Oo6vUn65aXyCVgP/If lD7dGnIFCq1Ym2O0TBC4eEMpSv0EdepGEiPF5mrB9X5SjjdQXiJSAo4PDwmpkIFLFr01 1nQgEibW35tibPlH6YikeBi9A3OIqHhbdDVbA1O74eoQZ56aIBZ9zc9BFGXCtDQC6BqM vbTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga6-20020a170906b84600b0099bcd1f229asi4222291ejb.370.2023.07.31.01.12.41; Mon, 31 Jul 2023 01:13:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231258AbjGaHj1 (ORCPT <rfc822;dengxinlin2429@gmail.com> + 99 others); Mon, 31 Jul 2023 03:39:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230216AbjGaHjT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 31 Jul 2023 03:39:19 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B7E410B for <linux-kernel@vger.kernel.org>; Mon, 31 Jul 2023 00:39:17 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RDqpt3wCPzrS3Q; Mon, 31 Jul 2023 15:38:14 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 31 Jul 2023 15:39:13 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Mike Kravetz <mike.kravetz@oracle.com>, Muchun Song <muchun.song@linux.dev>, Mina Almasry <almasrymina@google.com>, <kirill@shutemov.name>, <joel@joelfernandes.org>, <william.kucharski@oracle.com>, <kaleshsingh@google.com>, <linux-mm@kvack.org> CC: <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH 0/4] mm: mremap: fix move page tables Date: Mon, 31 Jul 2023 15:48:25 +0800 Message-ID: <20230731074829.79309-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772923057769077412 X-GMAIL-MSGID: 1772923057769077412 |
Series |
mm: mremap: fix move page tables
|
|
Message
Kefeng Wang
July 31, 2023, 7:48 a.m. UTC
The first three patches use correct flush tlb functions when move page tables, and patch 4 is a small optimization for hugepage on arm64. Kefeng Wang (4): mm: hugetlb: use flush_hugetlb_tlb_range() in move_hugetlb_page_tables() mm: mremap: use flush_pmd_tlb_range() in move_normal_pmd() mm: mremap: use flush_pud_tlb_range in move_normal_pud() arm64: tlb: set huge page size to stride for hugepage arch/arm64/include/asm/tlbflush.h | 21 +++++++++++---------- mm/hugetlb.c | 4 ++-- mm/mremap.c | 4 ++-- 3 files changed, 15 insertions(+), 14 deletions(-)