Message ID | 20240129124649.189745-10-david@redhat.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 67563C47422 for <linux-mm@archiver.kernel.org>; Mon, 29 Jan 2024 12:48:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EE45F6B0087; Mon, 29 Jan 2024 07:48:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E95106B00A2; Mon, 29 Jan 2024 07:48:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D5D796B00A3; Mon, 29 Jan 2024 07:48:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id C40F86B0087 for <linux-mm@kvack.org>; Mon, 29 Jan 2024 07:48:02 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 9EBD580288 for <linux-mm@kvack.org>; Mon, 29 Jan 2024 12:48:02 +0000 (UTC) X-FDA: 81732326004.17.3D4303E Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf25.hostedemail.com (Postfix) with ESMTP id E12DBA0014 for <linux-mm@kvack.org>; Mon, 29 Jan 2024 12:48:00 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Dn5nZ6Ln; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf25.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706532481; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=fKY0nJ8fYJnC2xkC+wk3vcUZKJJkEzEBPQxWgaxQbuA=; b=vXrldoRvk8dEROpm1+06jo7gVvmJbXwe2HNldOmQFL7d+D53rMmxXw9UZBy7nstQ+ScuDB R7FRO3XLJcmaCINDz9GRVh1V4btD1sWegoQNd7gcP8REMZF7PYxWKrgOZ40LDY5dYeYDz+ TUihwS5R/eqVR/r8f99MAgyUv4K87kc= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Dn5nZ6Ln; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf25.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706532481; a=rsa-sha256; cv=none; b=pwA4ZLklZbssLtRt1Qi62t7b47g5OBI4uxN/8VMwIrfG6uZFS2eqaRBMWYNQ5H0vu+DnXI sT1F5kRi2R/m9NCRdGD/JdMfgMZ9O3r5oMVl3SzeSCinDLST+qK+7PnsfxautuTl2ODK+p 8lbPROrP24KpTGBGtRt0Q0SsMcKsq7U= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706532480; 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=fKY0nJ8fYJnC2xkC+wk3vcUZKJJkEzEBPQxWgaxQbuA=; b=Dn5nZ6LnINyNQGeKjGzqrL2GZr+737VXMeXctm635cBmDrwisj98AkMVvsC/Yvm6hVDBYW T92MZSU8rJL/q3XtyOqJ9luuryY1m8e+Se91669XwQjzpz8QI5Ocb5OOpBskC5T4ZLCTzy SMn3pjlXzvss0ivAt09juQhKmqNHSd8= 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-518-L0LUIbsCOk-VxGFEn38f-A-1; Mon, 29 Jan 2024 07:47:52 -0500 X-MC-Unique: L0LUIbsCOk-VxGFEn38f-A-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (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 4AC391C04325; Mon, 29 Jan 2024 12:47:51 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.194.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 304AB8B; Mon, 29 Jan 2024 12:47:45 +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 v3 09/15] arm/mm: use pte_next_pfn() in set_ptes() Date: Mon, 29 Jan 2024 13:46:43 +0100 Message-ID: <20240129124649.189745-10-david@redhat.com> In-Reply-To: <20240129124649.189745-1-david@redhat.com> References: <20240129124649.189745-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: E12DBA0014 X-Stat-Signature: 48mrmdqc8enonxcnnf3q5pxt8xsedfud X-HE-Tag: 1706532480-822149 X-HE-Meta: U2FsdGVkX1+D7g9PV+6hmKZoVRhGgAfVA5E3DfNJOXBNieCyCsBK2n9aM8ck6J5jY09BBNH5vkOqKRgYAImKizaVF6GEKkqhgJNnB/Gojij3vrylAUySKGh18vncp9TzM09R4f2N7SfZF9IDtUqUalnHs5eBajgr2Kb8f7n3DID2m88jiLiT/DKL89VjuPfqc1dJemSIYXf6mjQuZYGuZq75AzsNEk1L33GvqHpo6H71ROWjX2Fx+SKkgsiidMnjsk0kmZUf6KFNmFQP5m5tfKu8g0Tf1ABU6awXZsGKWAfOemJpxXQ6CUM9v1XMz35w16lrDh6MZyXp/SqBN5mSCeDQGWy6I3P1/no5BMZd1APREs1jTaQbP959+vUDbMc8RqOM5bTurN/AbSLaw1yVk6yrqs51CCbddKJnfqOOcyAuvNenTeBSTW0lZcpCGBbcArjKfwFuA8Ep6wtH9KPbfZqCKDUDjqA2e7kbmOXTG5VYs6QYYJ5GDxNoOR4j40gF5M+y3JCf+kb+45lJ3dpc5ijOrcmMP1wSd9ERxnlAO5AuxvBPefojthJ64YYqF0mPD6r0f6GhRsNI85fgMsWJ3KmRSxKuqyNUadSODfPut2Asy39XrwbEtC596XyGqpo0QcV3xKfM8PmCXg8R4QHqU3EGrdjIifZrfw8P+KqNWPBDl3Mi3tTwEubSrYGPvEYr57Sa5ogBi8DjTHtwuFs6F7ioFXZrzmFJ6ZBgS01ekMttWAJsfYt/q0/FgXpZndcd7rfAdMPLR+9DTqpQ2UEPtf9q0O2AgTvXpKaCoDzoQuMQx8NpJZvJ6nfTDiwAv4JPKSe10dxtgrFWTfahYUPicP5iclFhlLl+Cb+8Xh+JT+ZbfA2PXjKRMrx45Z6wA8HKyXLIOcdgN+VLxJqq8GIFdMBaPHm5dlEd6KXZFsZ/3dG8okYrbY94E9Xd0xjsCi7og0HrNoA1ORIfZziAHQd szdcEQOf /e5joVclm1gidR41yH4gUnvh6GRjpK8G6AmMHVIsegUnf5d+bCe2O8h+PagJCfd/owfxrLm2U8TqjTOOKNLXdRjyp7ndq1irgAF6cpTGlQkc6ESlCr3/IXYPckbyssTOngphBXOUPw3HakqgxaKxlyC+eM+1MAjdiGINYUdnZCg+qIu2RzYyQLeK/ye/HFJ6Ol/UdOdGJk7kdVnpRalLj9x4RKTiJZzGtnscp 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm/memory: optimize fork() with PTE-mapped THP
|
expand
|
On Mon, Jan 29, 2024 at 01:46:43PM +0100, David Hildenbrand wrote: > Let's use our handy helper now that it's available on all archs. > > Signed-off-by: David Hildenbrand <david@redhat.com> Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org> > --- > 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 674ed71573a8..c24e29c0b9a4 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); > } > } > -- > 2.43.0 > >
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 674ed71573a8..c24e29c0b9a4 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); } }
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(-)