From nobody Mon Jul 27 00:10:49 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4h7fBd72j8z6m98m for ; Mon, 27 Jul 2026 00:10:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h7fBd3Bhwz43h9 for ; Mon, 27 Jul 2026 00:10:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785111049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BNHqqiXHIQOCfo/FvAcHoJY/VaTT4i45cxmDbY95Sn0=; b=UEDa0fa7elV0JdF6QWt+/GyD8nTJJDxq/woT+bsLfbhNCIqQ/H2cMUpyW/OSrjO6QXUdo/ rxe7TjL/T0jaYiFZxaozVB8/t6snDCnwB4n/r/yzT/qVOQDByU7jsDUjzaAG/xn2KPDd7v l4Usavk8IC/e0pUcGt3T/Wwlon5Bqdy0gXkJxXdQr8tM1byb9MQL77gw4ZNHwH0O1zxYRV aOV5urmGnKK0vPfeU7yZoToTXzKfvKgTrxjhSzs+Q0Ay/qEHxyuk4kF/WNASlrN3BF0QEw V8vrWE8cx+rdmkd21YfBo3009/mAucK07rIajZYs4EJDiPpiCuTMEww9sqmMWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785111049; a=rsa-sha256; cv=none; b=DEmGTHlIEnWkHmLd/N76BfchDCA20bJgmk+hOrc9mddAro64bLssorUE30rxX1FQAKOy+6 pnGI7Ev8yxK3VW2l09BM1AWsCnnYb/OTEGWb6xY685/ZEFNekhu58WjkOoe6kXMzcrzMS0 nOMTwpfopxgfcCske+syOxyazLjcU0cz2yVqT46wCIXE+m9Spld6KO6coiY2Pa0+aloNwz qTDvb1sbtOM/QsQuTpiE0Fs/kW4gL4M5hsSAgE+lij4MnoU2gD8rUFEb4mdVfV6IXLj1Fj pUC/pZZeOJ/uq11belWezWx5EeXqL7+MhMqqgMStUad87mgQZtdbHxmHeISESg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785111049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BNHqqiXHIQOCfo/FvAcHoJY/VaTT4i45cxmDbY95Sn0=; b=TIWUuzh7SnyU18NSH4L1QJBHAxBaYQuWxjFq7wwnEPilc+K9JjT81w6n2dfhs17uqormAP P8sEc177V3sY3vRp/QVkZVwh5/aleIWnu7ju8zC07bLc9EbF6NM8fga6SQz+QZ6pTyDzbc VxtQJ7aRuyWMecST6N+S0TOdyeKztkkrqp3OpSqNNu1BswgGg9aVIGAxhiid+TZyktOjoC EyZkUvHx+IbN8xpYqUDppqDLCCpJQ8O/Gw1ZpsYdi27CP3C5mhvyixouGX+bIZL9aqqbax 1BHDnmoJ5jPqRA22sxVlIRf8mea4l9tgVctn4EefsjqKHkUpv/JoyUVLsWL7vQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h7fBd1xDvzl5k for ; Mon, 27 Jul 2026 00:10:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 273f0 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 27 Jul 2026 00:10:49 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Bjoern A. Zeeb Subject: git: 86da56e65f8c - stable/15 - LinuxKPI: page.h: use atop() and ptoa() instead of PAGE_SHIFT List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 86da56e65f8cdfdc7a2fb503a37a18765564b891 Auto-Submitted: auto-generated Date: Mon, 27 Jul 2026 00:10:49 +0000 Message-Id: <6a66a209.273f0.1270083b@gitrepo.freebsd.org> The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=86da56e65f8cdfdc7a2fb503a37a18765564b891 commit 86da56e65f8cdfdc7a2fb503a37a18765564b891 Author: Bjoern A. Zeeb AuthorDate: 2026-07-17 13:09:01 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-07-26 16:49:02 +0000 LinuxKPI: page.h: use atop() and ptoa() instead of PAGE_SHIFT With upcoming changes to 'struct page' this will make the lines easier to read by using the predefined macros from param.h. Sponsored by: The FreeBSD Foundation Reviewed by: markj, kib Differential Revision: https://reviews.freebsd.org/D58298 (cherry picked from commit f45506c6a6f4742cd5129d636902b61045c4754b) --- sys/compat/linuxkpi/common/include/linux/page.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/page.h b/sys/compat/linuxkpi/common/include/linux/page.h index a8e266af95fd..eb0083f5fecc 100644 --- a/sys/compat/linuxkpi/common/include/linux/page.h +++ b/sys/compat/linuxkpi/common/include/linux/page.h @@ -74,8 +74,8 @@ pgprot2cachemode(pgprot_t prot) #define page_to_virt(page) linux_page_address(page) #define virt_to_page(x) PHYS_TO_VM_PAGE(vtophys(x)) -#define page_to_pfn(pp) (VM_PAGE_TO_PHYS(pp) >> PAGE_SHIFT) -#define pfn_to_page(pfn) (PHYS_TO_VM_PAGE((pfn) << PAGE_SHIFT)) +#define page_to_pfn(pp) atop(VM_PAGE_TO_PHYS(pp)) +#define pfn_to_page(pfn) PHYS_TO_VM_PAGE(ptoa(pfn)) #define nth_page(page,n) pfn_to_page(page_to_pfn(page) + (n)) #define page_to_phys(page) VM_PAGE_TO_PHYS(page)