Message ID | 20240125193227.444072-3-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 E8073C47258 for <linux-mm@archiver.kernel.org>; Thu, 25 Jan 2024 19:32:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5C25B280008; Thu, 25 Jan 2024 14:32:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5725E280004; Thu, 25 Jan 2024 14:32:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 41345280008; Thu, 25 Jan 2024 14:32:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 3011B280004 for <linux-mm@kvack.org>; Thu, 25 Jan 2024 14:32:55 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 046A91403C9 for <linux-mm@kvack.org>; Thu, 25 Jan 2024 19:32:54 +0000 (UTC) X-FDA: 81718831110.20.4F2A710 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf01.hostedemail.com (Postfix) with ESMTP id 420E040011 for <linux-mm@kvack.org>; Thu, 25 Jan 2024 19:32:53 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=EiqCx66K; spf=pass (imf01.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706211173; 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=PQouyLY2O+uNJNW8rltya8+XjvAPXlL2xnyiW/c3KZ4=; b=OpmszxzX2bxS4BTWpnU5GVZinDEoUuca4bApU1IjimORQAKNFFeySLpfwgusA652XzO9J2 fiC2OeUXu3dw9PtvN7xbyJivMAOLzCGQJ5UWV44f4KZ76Mn19xU3shn8I3HjgSYAWQdB12 E46ApzdRWtiyqXVeZHf1zIk1cDC/w8A= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=EiqCx66K; spf=pass (imf01.hostedemail.com: domain of david@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706211173; a=rsa-sha256; cv=none; b=MOZIseJPkfBuc1A6MYfIu5M1C7uaIbj97kdvXOoNstNv5l3wr51FZ4BX6XhOPw2K6GdIP9 IburgmQY1mXFmaTPzUWvTmUyGVqONmzvH6H+oo3qwVveggoatF5FUPaAxFE9sPKzLhxPIZ P/Pkhw3lAbVs0D36shG2DzamVt+S5aU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706211172; 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=PQouyLY2O+uNJNW8rltya8+XjvAPXlL2xnyiW/c3KZ4=; b=EiqCx66KLewv6UHctfjS1nW6UG7qTcWdoc6Z0OLp2hfJ5j3CqAWUOeELKK3SB5JNe2wKQ4 1xljly0JQ7WXWfzIcZn78tX4hY+WZtgjEerPw88L6/rYorHtWDdD/anz3zKt1UsH1QeqmT CWymlNnIXHVbjL2orVCBTDGXQ/B4gmU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-606--28HdBjrN0mHVjdOaKldYA-1; Thu, 25 Jan 2024 14:32:48 -0500 X-MC-Unique: -28HdBjrN0mHVjdOaKldYA-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 AF58485A589; Thu, 25 Jan 2024 19:32:46 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.193.154]) by smtp.corp.redhat.com (Postfix) with ESMTP id 37002492BC6; Thu, 25 Jan 2024 19:32:41 +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 02/15] arm/pgtable: define PFN_PTE_SHIFT Date: Thu, 25 Jan 2024 20:32:14 +0100 Message-ID: <20240125193227.444072-3-david@redhat.com> In-Reply-To: <20240125193227.444072-1-david@redhat.com> References: <20240125193227.444072-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Rspamd-Queue-Id: 420E040011 X-Rspam-User: X-Stat-Signature: m7p3trfx1mcxuyomhhdg1j9gxpqo95a4 X-Rspamd-Server: rspam01 X-HE-Tag: 1706211173-961077 X-HE-Meta: U2FsdGVkX19q6YMB2Pl0A9bxkgfoMBpgvCfSzzNdZAgqFFEJTd86qW6Ce6WCXBOHd3Ry9yV7jGt8lTTA5uUULXF+M8x0wwYJmOmNCUZd4h0hQcoXEKPOrb/mcqOvjghJgBYk1Hy1RzlWTPpPyyLsk2I/U3Y8u686/Lrk4Oo5im4dsiM7uYl0z01zFlOPzUlD2fNOLS1bSpfNzUWnCEONAboa45EKVxBl+/l4UqUT7DLFjQdLvLtQbJdMPbodeHLzjajbFiNggwXC7riE+FuHj7Wa5Z19uU21kcnrYqvs/5q/hMaOX9xn2ZHsPLf4oMcq7JfngRFsE652L3YJx9ZANkPbOWxtE8XWLiPz8974p8DNVdWrH1Fy1+TX4F/DQ04FWpLKb6ywz6aLJbI+njRbGujoNr7ze06q2fbGPqQakWQVGStRkROm+oVJ9XF1bioZdgWTvjxh8QweRkwbhiOUlF3ljIA7I1zXvNxMsdXkytmioYKWotWPFes3lnDTF0tNz3DRQOlhXIJ+9h8ui+OXHxjYXuEYmOUArSURjy7yV5K43qksDjN7rCwlRMdnvtfo+tCHOxQEbjGAUg2PjWWBkFrgTuBQaO0/WmWOeuYo8BDdEccXv5AQaAXdpH5GZ4FEIStAb2C4R+KdBlRjEcWsct8kZQPmW+PkQiFA/cual6+3Hi+t3K1ebA46cQJOqqz5b3mza4ZdLjlyXoOs8+JZb9onhv3w2wjO/XqN7l6D7G8cSYJ7hooyQ72E57dHPYiOTz7rIa05Nwh8d+9jaDf8RzK/O7uappIqUlrsG6baDBs2eYNQLn2aO5HNBSD2WYLVAY1pRBEEzM4+/11xYX1J58DTyAwTe7EtJf1kKD/cmk4L8VLjvDTpsOXt5QyCPV3Tw3JnjU3AWK+bbO/vlOAWipZBACXg1ev6mqZARQZeNcHHWhE3HDD96bxqIOspcFWH8Qb5d/rjy4sd0IBbC4Y ouhKpbMS kipUHrU7hzxk+o1oTgaQ0eir0Qq8u1a4HyR6l5cRIrBDeKO2l25Kunclq+o/jsHklE6zj9YA9jhI7NF7yPkBXdPRoXEmJh8kRzr0DEAznsZY/mwOoYU76mCSJayvrUo9ZJUU2Q/7ovM3SM/OJvz9N8NfbHLKZ8+miYD0xa1bVq6rU1VjKPuJqRhy5WfNCAig9st7bWSF5nERJJxupsIBZNijpjcVGYVro6a2r 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
|
diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h index d657b84b6bf70..be91e376df79e 100644 --- a/arch/arm/include/asm/pgtable.h +++ b/arch/arm/include/asm/pgtable.h @@ -209,6 +209,8 @@ static inline void __sync_icache_dcache(pte_t pteval) extern void __sync_icache_dcache(pte_t pteval); #endif +#define PFN_PTE_SHIFT PAGE_SHIFT + void set_ptes(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pteval, unsigned int nr); #define set_ptes set_ptes
We want to make use of pte_next_pfn() outside of set_ptes(). Let's simply define PFN_PTE_SHIFT, required by pte_next_pfn(). Signed-off-by: David Hildenbrand <david@redhat.com> --- arch/arm/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+)