From patchwork Thu Apr 11 13:09:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13625903 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 D958BCD1284 for ; Thu, 11 Apr 2024 12:42:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A30486B009E; Thu, 11 Apr 2024 08:42:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9DFED6B00A0; Thu, 11 Apr 2024 08:42:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8306A6B00A2; Thu, 11 Apr 2024 08:42:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 579596B009E for ; Thu, 11 Apr 2024 08:42:45 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 10B4F1C0F5B for ; Thu, 11 Apr 2024 12:42:44 +0000 (UTC) X-FDA: 81997215048.05.7CF9EE9 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by imf29.hostedemail.com (Postfix) with ESMTP id 0CD4D120002 for ; Thu, 11 Apr 2024 12:42:41 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf29.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.190 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1712839362; 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: references; bh=BdYcOWmWoqP/zCqZrb2iSjIyfSptouA4MqnTWPpNUd4=; b=5D+ZP7AUU1Boy9ZlTXyd68BbgVjX9afMRfBSBAEueHd1iYM3Mq+PuFTk3j06dCCU1taP5t ivCu5kWNjiaSzW5n/dj6Dwh/tvzMAhS8BK6eDmNvyv08JerZ1fjGPk9VRpEF7lC1XBi1Lg beF7HE5j59pAciZtFRXUw9qnifo/DRo= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf29.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.190 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712839362; a=rsa-sha256; cv=none; b=IofXvs2dJeo3FPqReAZoTa13QkUEjLXJM6VBW/Qopcbx/XKXNUYMRyWBCTUnxqb2iKKEIk kZBHQOhZhdNh1eTdhoy0hJr+POjFgCXRAUgCBHWPipR7s7jucscF+EsIIMHuSVSve7D4Dz yik0AJhb8joeSSFCNox4UjNnFdo1SY0= Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4VFfRp20s7z1yn4Y; Thu, 11 Apr 2024 20:40:22 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 1ADE61A0172; Thu, 11 Apr 2024 20:42:39 +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_256_GCM_SHA384) id 15.1.2507.35; Thu, 11 Apr 2024 20:42:38 +0800 From: Kefeng Wang To: Andrew Morton CC: "Matthew Wilcox (Oracle)" , , , Kefeng Wang Subject: [PATCH 0/2] mm: batch mm counter updating in filemap_map_pages() Date: Thu, 11 Apr 2024 21:09:48 +0800 Message-ID: <20240411130950.73512-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm100001.china.huawei.com (7.185.36.93) X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 0CD4D120002 X-Stat-Signature: mtpki348qenz9t3rabdfmpof4oant9ab X-HE-Tag: 1712839361-686953 X-HE-Meta: U2FsdGVkX18vr6UMNKl7qUBhyvbqbLkDPZgPFd9R4jED9ifWs1XiTa8dMCGuQifd/Spcx5bbg4pmHRcSQkYJbmTAHGmlhFO0HxrDZc5xBak8EKGDwhFAclK0WJaIAErCcFR6maIv+U4nKliAnz944CXLiY5fk+yO+axW3sDex593h0yReMDYwZe1GT/xuehen+bGHTLxdVQz8WvV7Vbwa3Vkop42yyPY9ybw7UIY2sf5HZo5KmaoqHm80lx6+G3zsvqLJpXfebr1qBONOTfiOybCJ2NZU8FlR4rwQtR4mzSF/ovwKPMlT0GZrrkzK5lTOAonEyTRLbVI3OC9JVfCkze7luTY9MUAuNZa4GXfEEcB8cFhgcooH+YmxlTqJdiSrXcvFFL8KxgKW5kQuMF7Az7korN7Fm4kDLKYXFILHiiGVUhY5c4TcLyyWtMtskuEEARhXk66FgmuVVn/HP/Sx1Nc+Vfo2HDecqoW5n5iQLh5obALyhqspfoBLfwg6UR6U/8Oi/XVR0AptN0qpGTq6rZmYPV8n2IngCPLOO1J+8Tu2mWSmvsGvDITJ5GTpuc+JGy/bpAjO0TFHm15ZWEs/8LhHKNn7WOa2wojHsmifVfFECB6TtTArY3w5ga3QfHBdNjPmuK7o70E7OUvd5naUOlX62AJFIbPtKYqS1VfyyJs+gut3ia056YAkt2gNdNUI/CRZkfYZgfRYpt7lycvLuk827OVy3h2dN736f7lq6co+2pCCUaLMfdxB46u41ZgQPCkSNJyL2Bosykx9ofuFLSLQaM6q9njzcImBwHNv8JTxMFENUl8q8MEE5RBVtTcVL4ta17u287WTGZLI4+Yg5K/tRox22V19TV54AAW3St9e77fXTEOWxem/xbItaOvaHP5nq725hY= 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: Let's batch mm counter updating to accelerate filemap_map_pages(). Kefeng Wang (2): mm: move mm counter updating out of set_pte_range() mm: filemap: batch mm counter updating in filemap_map_pages() include/linux/mm.h | 18 ++++++++++++++++-- mm/filemap.c | 21 ++++++++++++++------- mm/memory.c | 30 +++++++++++------------------- 3 files changed, 41 insertions(+), 28 deletions(-)