diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c index c39554fd3b49..4e2b34ef6695 100644 --- a/sys/mips/mips/pmap.c +++ b/sys/mips/mips/pmap.c @@ -1077,7 +1077,7 @@ pmap_alloc_pte_page(unsigned int index, int req) { vm_page_t m; - m = vm_page_alloc_freelist(VM_FREELIST_DIRECT, 0, req); + m = vm_page_alloc_freelist(VM_FREELIST_DIRECT, req); if (m == NULL) return (NULL); diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 9191cba09800..ac6c791af2a3 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -1409,12 +1409,12 @@ vm_page_alloc_init(vm_page_t m) /* * vm_page_alloc_freelist: * - * Allocate a page from the specified freelist with specified order. + * Allocate a page from the specified freelist. * Only the ALLOC_CLASS values in req are honored, other request flags * are ignored. */ vm_page_t -vm_page_alloc_freelist(int flind, int order, int req) +vm_page_alloc_freelist(int flind, int req) { struct vnode *drop; vm_page_t m; @@ -1431,7 +1431,7 @@ vm_page_alloc_freelist(int flind, int order, int req) cnt.v_free_count + cnt.v_cache_count > cnt.v_interrupt_free_min) || (page_req == VM_ALLOC_INTERRUPT && cnt.v_free_count + cnt.v_cache_count > 0)) { - m = vm_phys_alloc_freelist_pages(flind, VM_FREEPOOL_DIRECT, order); + m = vm_phys_alloc_freelist_pages(flind, VM_FREEPOOL_DIRECT, 0); } if (m == NULL) { mtx_unlock(&vm_page_queue_free_mtx); diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 86119a16bb62..e4183b38499e 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -340,7 +340,7 @@ void vm_pageq_remove(vm_page_t m); void vm_page_activate (vm_page_t); vm_page_t vm_page_alloc (vm_object_t, vm_pindex_t, int); -vm_page_t vm_page_alloc_freelist(int, int, int); +vm_page_t vm_page_alloc_freelist(int, int); struct vnode *vm_page_alloc_init(vm_page_t); vm_page_t vm_page_grab (vm_object_t, vm_pindex_t, int); void vm_page_cache(vm_page_t);