diff options
author | Jayachandran C. <jchandra@FreeBSD.org> | 2010-11-28 05:51:31 +0000 |
---|---|---|
committer | Jayachandran C. <jchandra@FreeBSD.org> | 2010-11-28 05:51:31 +0000 |
commit | aa546366200bf1ab3dc608ee7506f1d5f42b7df9 (patch) | |
tree | db4fed2b6468c279e741dc4e70468c53bf642793 /sys/vm/vm_page.c | |
parent | 2a89829bde87ff018a5a613de389fc042a781bbb (diff) | |
download | src-aa546366200bf1ab3dc608ee7506f1d5f42b7df9.tar.gz src-aa546366200bf1ab3dc608ee7506f1d5f42b7df9.zip |
Fix issue noted by alc while reviewing r215938:
The current implementation of vm_page_alloc_freelist() does not handle
order > 0 correctly. Remove order parameter to the function and use it
only for order 0 pages.
Submitted by: alc
Notes
Notes:
svn path=/head/; revision=215973
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r-- | sys/vm/vm_page.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |