From nobody Sun Nov 17 18:20:03 2024 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 4XrzZC6qJSz5dDwy; Sun, 17 Nov 2024 18:20:03 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XrzZC6BYzz4nJG; Sun, 17 Nov 2024 18:20:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731867603; 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=JN6Q6S1meaXWm4x0zr1QSqnKysXGaOZ05SFjXA+g264=; b=iliH7o1JmnwSoiZjTnCqvjCMsT/fsFdlmDz1UBwOHJyn2r7YNFi95BVuaqaFNZyUlWQjw8 Mg1YOk8XPlJ58knnhKUaelSNov6I9KBwDeps3CFODWmfYlZqRB7MI/P1PC+sKkuQlpb0Mi wHxbn/xxXKkKeYdrcnHSaVbl03/+kUuOCjvTwy5COgvQUj0+V3cr8+Oi0icO4cA9q3SRdB 4Mx9oYSmjfxQa0lA7LQlAHFmrW5o4UEhsrfDv53h8tHDrm87nn5kxfUCRIHOwZxzfO1sXB Q7is7a+TngvWlAFgsRZm00bersT+CfljkAnYKiIy8zRQ9wzcsz/ONUufbPHGSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731867603; 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=JN6Q6S1meaXWm4x0zr1QSqnKysXGaOZ05SFjXA+g264=; b=yXSswn5WaMKpdkttrcBKa6VqDPmP/JXh4HyqL4OR7/EFBlPYBF8ZC0zC5KzEMy6NR5nwf8 kBGhVuMxSxQ99cT1PmrUrt19BLL/hULJIa6EOuq5zI87F1D7qsFcoEyZEuf5/9Y5sT14jw YLlmrZ0JZixmGYo0WDWhP8lveG8+dFzFnaOuwCj/8QPTfaC2Dx3v5kNteB7PaOuwvLn7/n +RhLqjts2ssWmVM1cNbHzFkUbEGsky0WVUNJvbcSPM5S1Ff9QDwiPr7QP6POSV31o++3JB xmAUVKs3GCGFK5rflupy2RgH7cgzN1eFUtyVBY6BdZdx72wZXiYFpzQ7dJYthQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731867603; a=rsa-sha256; cv=none; b=SPzq1SkYPQIChFgU+WHC+QmiXseXPg0ulQP/kE93paIYXLyFnzCMd1N+efxO/Uwqd3KzhM 7qgCoFmVJy1i+IQKyGfjTKuwgQ7HvVK6WDb+iJnxRZdliVm+hMbVsFaLdxWI49EMddAfMO RXNiM4sIb8/+rQ/qQTlC4HHxS3dDrHJRka4NAW3zQ3X2o3+7Y2nZW6cGdZCRrDYBh7hhSA s365F3Rw8baCffAfdEoQV7WiXdKlm/pzNKb1dyrK3O51bJHkiMyzfK54QAVpQk8Ji2h/xA 3Ws1G0lOXTc5QOxoy9KTeDZvkGwErruDJGSttYCA7EgJjCX2Ig+Jb+8QKuDEkw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XrzZC5YDLz12qt; Sun, 17 Nov 2024 18:20:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AHIK3qc002401; Sun, 17 Nov 2024 18:20:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AHIK3Xr002396; Sun, 17 Nov 2024 18:20:03 GMT (envelope-from git) Date: Sun, 17 Nov 2024 18:20:03 GMT Message-Id: <202411171820.4AHIK3Xr002396@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alan Cox Subject: git: 8c8d36b9d172 - main - vm: static-ize vm_page_alloc_after() 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: alc X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8c8d36b9d17239dc4e54731b6cf54c9f9fce43a9 Auto-Submitted: auto-generated The branch main has been updated by alc: URL: https://cgit.FreeBSD.org/src/commit/?id=8c8d36b9d17239dc4e54731b6cf54c9f9fce43a9 commit 8c8d36b9d17239dc4e54731b6cf54c9f9fce43a9 Author: Alan Cox AuthorDate: 2024-11-16 22:20:14 +0000 Commit: Alan Cox CommitDate: 2024-11-17 18:19:00 +0000 vm: static-ize vm_page_alloc_after() This function is only intended for the internal use of the VM system. Reviewed by: dougm, kib, markj Differential Revision: https://reviews.freebsd.org/D47644 --- sys/vm/vm_page.c | 4 +++- sys/vm/vm_page.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 6b49f0745c73..0b9b55337b52 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -162,6 +162,8 @@ SYSCTL_PROC(_vm, OID_AUTO, page_blacklist, CTLTYPE_STRING | CTLFLAG_RD | static uma_zone_t fakepg_zone; +static vm_page_t vm_page_alloc_after(vm_object_t object, vm_pindex_t pindex, + int req, vm_page_t mpred); static void vm_page_alloc_check(vm_page_t m); static vm_page_t vm_page_alloc_nofree_domain(int domain, int req); static bool _vm_page_busy_sleep(vm_object_t obj, vm_page_t m, @@ -2085,7 +2087,7 @@ vm_page_alloc(vm_object_t object, vm_pindex_t pindex, int req) * the resident page in the object with largest index smaller than the given * page index, or NULL if no such page exists. */ -vm_page_t +static vm_page_t vm_page_alloc_after(vm_object_t object, vm_pindex_t pindex, int req, vm_page_t mpred) { diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index b85342b784de..893608bcacf1 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -608,7 +608,6 @@ void vm_page_activate (vm_page_t); void vm_page_advise(vm_page_t m, int advice); vm_page_t vm_page_mpred(vm_object_t, vm_pindex_t); vm_page_t vm_page_alloc(vm_object_t, vm_pindex_t, int); -vm_page_t vm_page_alloc_after(vm_object_t, vm_pindex_t, int, vm_page_t); vm_page_t vm_page_alloc_domain_after(vm_object_t, vm_pindex_t, int, int, vm_page_t); vm_page_t vm_page_alloc_contig(vm_object_t object, vm_pindex_t pindex, int req,