Message ID | 20240125193227.444072-10-david@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-39190-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp210418dyb; Thu, 25 Jan 2024 11:36:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IErthGjxrxi6pLyT99p5EMjtW3GQWpscNWk0V9HfokAxoulO/86CfxmYc5/Ga5jPBI3mcSJ X-Received: by 2002:a05:6a20:8f03:b0:19a:f6f1:c63d with SMTP id b3-20020a056a208f0300b0019af6f1c63dmr212470pzk.11.1706211408906; Thu, 25 Jan 2024 11:36:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706211408; cv=pass; d=google.com; s=arc-20160816; b=MfzbiPG29FWBFy6UvdEBVx+K6lIW7ZeLCmxCU4KMfjObnCevlzAJzBV+Wc13XFbRxn h39DlZg7/z3d6NbTk+U2hFisoazcWfKJq4CWTbcyGrqYpQyP4ZmPpAhovEnvMz3filCV t84mS/ks9hgPIE3atfsXJa0nkc9znsikpS4nM9j7+vKsQ3O4RcXZRyvQlMVgkuTI9+eY Cef4Z885/NT/Lgc+YJXcjB+BrBwmxlXelQVNwT6DupGllMkSVQJhWhW+eLC1as7AUvHX W0uK304/Q0rS1hFcQ4iExe8ShQtSIMD6jZProaNt+UPNPt76bSUexb47HQEyH9JiwLCL OyqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+R5tuq6xMxmvP6/rbWFzIFy6OdxpTZA+S6ihf7eXs9I=; fh=lZsZCQsH4ia1jFJuQK1Gi3cXLvdnrj+ub8bSs7lwlcw=; b=H4HgCoXPRi8ELeKSXv3Jj2mkI8RD2jAhqSB1EoM0xhJMNyIKu+risZMhwa53yy2Y+0 0rCyy6GXokdO5bbyn8xt5JgntUJloD8vE4P611/x/u9EozOlWaQ/f+W+mX663Bsi2Sk/ VFqd/1epgDHZUjO8hqLKdjPItiZAOBpx5LMIHUK/QaxHI6F3pc8ZYEjSe1XeDdsgOH/W TKG0L/ezvjygB3J33T3WrnnCpjhhDNaMlEwBJBXkD2k1iuZVZkq1zRD5tu21BGC6iYQ6 5TE6hGkwxoBIVQfDvnZLK0oYHAj0uCkFiTtfykiEqmj2Zb4YxBFY0jUuyIDmTwHn/n3B Mq+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JIZxlj18; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-39190-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39190-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q17-20020a056a00089100b006d9379ecce8si16658287pfj.207.2024.01.25.11.36.48 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 11:36:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39190-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JIZxlj18; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-39190-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39190-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BC097B23E8A for <ouuuleilei@gmail.com>; Thu, 25 Jan 2024 19:35:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDD9713A269; Thu, 25 Jan 2024 19:33:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JIZxlj18" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB284137C2B for <linux-kernel@vger.kernel.org>; Thu, 25 Jan 2024 19:33:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706211218; cv=none; b=pe1wKVE3JC+IGt6zQxveuzLIRKa+Z3N4AIqgCreFEb6KJ6XfhMJj2BANIvYEzrCDDjXTjeY37KjDt25YKhgdPpJth/9qxi+KyAGrAh58sPXMwBctBF/k0XglvvftI2RvXrA/Hnz4aUhmR1AQCAbRtXom0WkxAl1q1zDAO2lMvYk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706211218; c=relaxed/simple; bh=tEZB70lwCdY2w/SlLKknHwJN7eGFPYOmgie6JiWicfM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OlOmhnFljSZ2SGXVZMsPkC/trg7hZB6JTfygz+LiWTGFL9pvV2yXEZS7VXtL6OX+wLgDtoRI1s/Ibpqp2rwaWOWFht0SUhH1Tn3eg2ydISwii2gkkrTfaVJOC7tuH0FycgRfrtNUUDFmlYYpotASiFhDo0BJ5QinNWLp+FREKQs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JIZxlj18; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706211215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+R5tuq6xMxmvP6/rbWFzIFy6OdxpTZA+S6ihf7eXs9I=; b=JIZxlj183Hm5fvvq9b+GhtRzw7ZgLxpyHNl8E839KIHe4Bjd91bfeuHMb23y++U4ZD4CA/ o1Ios30BqbYy78KOwY/+yUebtPejfe5Ue4yLYppQRhErjnfnehPua64ack6heTEG8ucZQo yfK8kl6lZxcLsBDxqsRH1O7Vg5bDQQI= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-494-md0mE8fJNzqSFV1VkGdeGg-1; Thu, 25 Jan 2024 14:33:30 -0500 X-MC-Unique: md0mE8fJNzqSFV1VkGdeGg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 61303383CCEE; Thu, 25 Jan 2024 19:33:28 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.193.154]) by smtp.corp.redhat.com (Postfix) with ESMTP id B4C5C492BC6; Thu, 25 Jan 2024 19:33:22 +0000 (UTC) From: David Hildenbrand <david@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand <david@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, Matthew Wilcox <willy@infradead.org>, Ryan Roberts <ryan.roberts@arm.com>, Russell King <linux@armlinux.org.uk>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Dinh Nguyen <dinguyen@kernel.org>, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, "Aneesh Kumar K.V" <aneesh.kumar@kernel.org>, "Naveen N. Rao" <naveen.n.rao@linux.ibm.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Alexander Gordeev <agordeev@linux.ibm.com>, Gerald Schaefer <gerald.schaefer@linux.ibm.com>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Sven Schnelle <svens@linux.ibm.com>, "David S. Miller" <davem@davemloft.net>, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org Subject: [PATCH v2 09/15] arm/mm: use pte_next_pfn() in set_ptes() Date: Thu, 25 Jan 2024 20:32:21 +0100 Message-ID: <20240125193227.444072-10-david@redhat.com> In-Reply-To: <20240125193227.444072-1-david@redhat.com> References: <20240125193227.444072-1-david@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789092334090907265 X-GMAIL-MSGID: 1789092334090907265 |
Series |
mm/memory: optimize fork() with PTE-mapped THP
|
|
Commit Message
David Hildenbrand
Jan. 25, 2024, 7:32 p.m. UTC
Let's use our handy helper now that it's available on all archs.
Signed-off-by: David Hildenbrand <david@redhat.com>
---
arch/arm/mm/mmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 674ed71573a84..c24e29c0b9a48 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -1814,6 +1814,6 @@ void set_ptes(struct mm_struct *mm, unsigned long addr, if (--nr == 0) break; ptep++; - pte_val(pteval) += PAGE_SIZE; + pteval = pte_next_pfn(pteval); } }