Message ID | 20240125193227.444072-7-david@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-39187-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp213888dyb; Thu, 25 Jan 2024 11:44:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+ZM3TeAqdpVpG1hXk3MHghkG2stlRBx3hsSRJPgcKmYxpq5OpiemsQkCQu2hwqfNT6cYl X-Received: by 2002:a05:6358:3a1a:b0:176:4d01:22af with SMTP id g26-20020a0563583a1a00b001764d0122afmr300053rwe.4.1706211876903; Thu, 25 Jan 2024 11:44:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706211876; cv=pass; d=google.com; s=arc-20160816; b=T7ctHesnRSDwdIK75mzEwCqVi2mMOR9ZSjpxqduXXBO3r4P3qx1PnMYqlD1R/GyXIu PftDDWN/9Pnh65nlfjeeYNgpiRXbiAXDgeKHhaP5Ck7ja2xvGrJK6p6hC1uxfYsVowKB DOJ6tbvt5b+qvQNxg5iol1rJ+TVN+cHwiR39VWaOzfsfh4sZFKiakXvmIJWhjpEz6rch 3pTjg3BcKnQ4Blpih8yAL2fkZB4HfXGE6JlHkwwbUTa3mHMIFtAjoFTmjobhCIMgHqJU iLscF+FGmPvtQOugybLVFIb/HtlxZDnZ0MsVNxOvhjZwAgVy/wexYszG+sBFOPHMhvm+ kCQg== 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=HOFElmHyy38IK1/HVpenWSDjKK2a/ajysR8u0SxNo40=; fh=lZsZCQsH4ia1jFJuQK1Gi3cXLvdnrj+ub8bSs7lwlcw=; b=CEfutWA8TOtN9AdoncLNh4WzK5liBAMWJLeYoeWJ9dzfhHZ3xlMi3lvHn3+YMcdVnB FwNV3t3G+78Tn+3BtJT43PNmXZdtnXlLpysXmHmmLUXCeyn5M2cQqIjTTASsGDPHrohQ +ba7xU6ugKeYGP62ZVhisZFXhgI6DOHhhvFdYvRlxXTFEdKHEwjRwS7HsuATzJolM73u P27sxoBt6XEWctbATvdUVAwn+Lq9cdwFLhQzuMciLrv0AJo6uE6rAAMqU2oR5LJFiMGk c4NxgwubsfNHniP6lCucPugU//u9sUpDlX0KRIOaw/ZehEdfM6LaB5eS790PRqB9+qBQ 4+GQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CW6n8Rjx; 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-39187-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39187-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w186-20020a6362c3000000b005d3643cd2d8si5157962pgb.777.2024.01.25.11.44.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 11:44:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39187-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CW6n8Rjx; 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-39187-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39187-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C141F29B9F4 for <ouuuleilei@gmail.com>; Thu, 25 Jan 2024 19:34:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38A311386C9; Thu, 25 Jan 2024 19:33:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="CW6n8Rjx" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 2EE5B135A7C for <linux-kernel@vger.kernel.org>; Thu, 25 Jan 2024 19:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706211199; cv=none; b=H52n7JM4ZyoTVOfgfq2T/WrX383rqQwKsV5+OX6kFYXKvtRfTbVhGjPlkU+u/qNlhI3Omh0l3RgKSPm8atFToEoa7vTa6clCe+pMcz4Fl6rHdYqUaTGa+dIXosfahshutZD/Wbovbhs0zqSTqBcrffwXLccSqo1mgcFr8WQ/hZc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706211199; c=relaxed/simple; bh=beb0W7yX0tkUismMES7zCBKaj0ApRHIrR9uFe/KO3kM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b86rr2LPQ5NgUIIWbMgBHxyR7BXZXGdChUlIBFpW4LCvnxJX1KS+I88UxQWwN9Rgd18fvjHx+gGbHlKH9p57o7T2RUcKziyZXbkFo32WA5EBTJ8ZWN9ug4vf1B2LdakXoN4DOm6fNYjB/2CUwBBLoTkbHxHBb/dLYoD0m0/CkiE= 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=CW6n8Rjx; arc=none smtp.client-ip=170.10.129.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=1706211197; 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=HOFElmHyy38IK1/HVpenWSDjKK2a/ajysR8u0SxNo40=; b=CW6n8RjxrURyoj4EoncwQAD8EfO4pscRLUFD7i1bGRa4Mv6qW3r9majRliIktVlYZMcmBV 03pUJkLQSiMFhHbl0nhEw7PsLpMdNlNBS/TgrsL/KcMwdYGB9/7k8/YOge2YQ6HTzeF9F+ txZkcP8gwIRt5pg9ztp0egaMcErVsLQ= 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-213-Hevm4ONKNRujmourt_4mew-1; Thu, 25 Jan 2024 14:33:10 -0500 X-MC-Unique: Hevm4ONKNRujmourt_4mew-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 708AB8350EB; Thu, 25 Jan 2024 19:33:09 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.193.154]) by smtp.corp.redhat.com (Postfix) with ESMTP id 644EE492BC6; Thu, 25 Jan 2024 19:33:04 +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 06/15] s390/pgtable: define PFN_PTE_SHIFT Date: Thu, 25 Jan 2024 20:32:18 +0100 Message-ID: <20240125193227.444072-7-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: 1789092824993088911 X-GMAIL-MSGID: 1789092824993088911 |
Series |
mm/memory: optimize fork() with PTE-mapped THP
|
|
Commit Message
David Hildenbrand
Jan. 25, 2024, 7:32 p.m. UTC
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/s390/include/asm/pgtable.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index 1299b56e43f6f..4b91e65c85d97 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h @@ -1316,6 +1316,8 @@ pgprot_t pgprot_writecombine(pgprot_t prot); #define pgprot_writethrough pgprot_writethrough pgprot_t pgprot_writethrough(pgprot_t prot); +#define PFN_PTE_SHIFT PAGE_SHIFT + /* * Set multiple PTEs to consecutive pages with a single call. All PTEs * are within the same folio, PMD and VMA.