Message ID | 20240202080756.1453939-7-ryan.roberts@arm.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 65539C4828E for <linux-mm@archiver.kernel.org>; Fri, 2 Feb 2024 08:08:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EC3FF6B0085; Fri, 2 Feb 2024 03:08:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E72D96B0087; Fri, 2 Feb 2024 03:08:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D3B4C6B0088; Fri, 2 Feb 2024 03:08:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id C43C96B0085 for <linux-mm@kvack.org>; Fri, 2 Feb 2024 03:08:41 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 834C4A25D7 for <linux-mm@kvack.org>; Fri, 2 Feb 2024 08:08:41 +0000 (UTC) X-FDA: 81746137242.03.AB58172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf29.hostedemail.com (Postfix) with ESMTP id E6846120016 for <linux-mm@kvack.org>; Fri, 2 Feb 2024 08:08:39 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf29.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706861320; a=rsa-sha256; cv=none; b=WuKOASSbvfuqy5ZjoGdh4+ghWw9eOKf8Kj6MHnRhNSP8qqAry48C4APSZs4NnGA1NzhUgn Pe7udH8pGKe7O/8FUDXNLjI4oiI1j7+/ysSeq7r685jdlH1gpfVDRD3bH3vW6VC8EfbiyB Ios8j4zjovtshV9JVKfdjX4rdyzWYpo= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf29.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706861320; 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; bh=52iYv8dj+hH79XZPEMODfoNkUJF+rthPXe736QRckVE=; b=UzYUzwncbxyIMTddjWhDYFrcw2sZWrcsdVvUvVXzvUBFPrg4xKnFBsIakBwmDbmD6lAO8e kZjtAE1dddag1hxaWIw1LctgCAhNkEYlurCrVD86pQdNKaJF5CYXlG7Jw+8dIDtkhHmIW4 ySrL1yN5WG/hBPxHkRyUgo3fsEp+WKQ= Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 911E2176A; Fri, 2 Feb 2024 00:09:21 -0800 (PST) Received: from e125769.cambridge.arm.com (e125769.cambridge.arm.com [10.1.196.26]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A536F3F5A1; Fri, 2 Feb 2024 00:08:35 -0800 (PST) From: Ryan Roberts <ryan.roberts@arm.com> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Ard Biesheuvel <ardb@kernel.org>, Marc Zyngier <maz@kernel.org>, James Morse <james.morse@arm.com>, Andrey Ryabinin <ryabinin.a.a@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, Matthew Wilcox <willy@infradead.org>, Mark Rutland <mark.rutland@arm.com>, David Hildenbrand <david@redhat.com>, Kefeng Wang <wangkefeng.wang@huawei.com>, John Hubbard <jhubbard@nvidia.com>, Zi Yan <ziy@nvidia.com>, Barry Song <21cnbao@gmail.com>, Alistair Popple <apopple@nvidia.com>, Yang Shi <shy828301@gmail.com>, 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>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com> Cc: Ryan Roberts <ryan.roberts@arm.com>, linux-arm-kernel@lists.infradead.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 06/25] powerpc/mm: Convert pte_next_pfn() to pte_advance_pfn() Date: Fri, 2 Feb 2024 08:07:37 +0000 Message-Id: <20240202080756.1453939-7-ryan.roberts@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240202080756.1453939-1-ryan.roberts@arm.com> References: <20240202080756.1453939-1-ryan.roberts@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: E6846120016 X-Stat-Signature: weqwh4cdjjo9ugs94aw1tukzj7mxgyk9 X-Rspam-User: X-HE-Tag: 1706861319-165724 X-HE-Meta: U2FsdGVkX19ihK8sOK23wW8FEwQg/0CSpJvraIKiPciE6ld9HdgD7JWrUnHpDBdZi4ZqLDva9Nhm3c9erMoeRds12OZkYfvlAIaPZgxnl0E+dYwJbyPvqRrT4OVqYj2+17EtktJCYcC/dLAAJDr45Pzhtx8soY+BjLQQFbQSWg7iUu3xpG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jLPHX3KHogNXyQi3RX9w== 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 |
Transparent Contiguous PTEs for User Mappings
|
expand
|
diff --git a/arch/powerpc/mm/pgtable.c b/arch/powerpc/mm/pgtable.c index 549a440ed7f6..6853cdb1290d 100644 --- a/arch/powerpc/mm/pgtable.c +++ b/arch/powerpc/mm/pgtable.c @@ -220,7 +220,7 @@ void set_ptes(struct mm_struct *mm, unsigned long addr, pte_t *ptep, break; ptep++; addr += PAGE_SIZE; - pte = pte_next_pfn(pte); + pte = pte_advance_pfn(pte, 1); } }
Core-mm needs to be able to advance the pfn by an arbitrary amount, so improve the API to do so and change the name. Signed-off-by: Ryan Roberts <ryan.roberts@arm.com> --- arch/powerpc/mm/pgtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)