aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-10-20 00:25:04 +0000
committerMark Johnston <markj@FreeBSD.org>2021-10-20 01:22:56 +0000
commit84c3922243a7b7fd510dcfb100aec59c878c57d0 (patch)
tree74117de0ab9997196a9e98e019d9f8611c029597 /sys/vm/vm_page.c
parent92db9f3bb7623883231214e74ec38788c3dffc6a (diff)
downloadsrc-84c3922243a7b7fd510dcfb100aec59c878c57d0.tar.gz
src-84c3922243a7b7fd510dcfb100aec59c878c57d0.zip
Convert consumers to vm_page_alloc_noobj_contig()
Remove now-unneeded page zeroing. No functional change intended. Reviewed by: alc, hselasky, kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32006
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 6927d7af4409..0644c1167984 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -2883,32 +2883,32 @@ vm_page_reclaim_run(int req_class, int domain, u_long npages, vm_page_t m_run,
* "m_run" and "high" only as a last
* resort.
*/
- req = req_class | VM_ALLOC_NOOBJ;
+ req = req_class;
if ((m->flags & PG_NODUMP) != 0)
req |= VM_ALLOC_NODUMP;
if (trunc_page(high) !=
~(vm_paddr_t)PAGE_MASK) {
- m_new = vm_page_alloc_contig(
- NULL, 0, req, 1,
- round_page(high),
- ~(vm_paddr_t)0,
- PAGE_SIZE, 0,
- VM_MEMATTR_DEFAULT);
+ m_new =
+ vm_page_alloc_noobj_contig(
+ req, 1, round_page(high),
+ ~(vm_paddr_t)0, PAGE_SIZE,
+ 0, VM_MEMATTR_DEFAULT);
} else
m_new = NULL;
if (m_new == NULL) {
pa = VM_PAGE_TO_PHYS(m_run);
- m_new = vm_page_alloc_contig(
- NULL, 0, req, 1,
- 0, pa - 1, PAGE_SIZE, 0,
+ m_new =
+ vm_page_alloc_noobj_contig(
+ req, 1, 0, pa - 1,
+ PAGE_SIZE, 0,
VM_MEMATTR_DEFAULT);
}
if (m_new == NULL) {
pa += ptoa(npages);
- m_new = vm_page_alloc_contig(
- NULL, 0, req, 1,
- pa, high, PAGE_SIZE, 0,
- VM_MEMATTR_DEFAULT);
+ m_new =
+ vm_page_alloc_noobj_contig(
+ req, 1, pa, high, PAGE_SIZE,
+ 0, VM_MEMATTR_DEFAULT);
}
if (m_new == NULL) {
vm_page_xunbusy(m);