git: 8c8d36b9d172 - main - vm: static-ize vm_page_alloc_after()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 17 Nov 2024 18:20:03 UTC
The branch main has been updated by alc:
URL: https://cgit.FreeBSD.org/src/commit/?id=8c8d36b9d17239dc4e54731b6cf54c9f9fce43a9
commit 8c8d36b9d17239dc4e54731b6cf54c9f9fce43a9
Author: Alan Cox <alc@FreeBSD.org>
AuthorDate: 2024-11-16 22:20:14 +0000
Commit: Alan Cox <alc@FreeBSD.org>
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,