mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 17:44:17 +01:00
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
This commit is contained in:
parent
2a657b4ee9
commit
8c8d36b9d1
@ -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)
|
||||
{
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user