diff options
author | alc <alc@FreeBSD.org> | 2007-07-14 21:21:17 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2007-07-14 21:21:17 +0000 |
commit | dc39b85c98a3f1fda07d9e48a4a05717dc0556a4 (patch) | |
tree | 7c05eb9c9b736b3a1d9bc05dcb13efd1b7d91d99 /sys/vm/vm_page.c | |
parent | def1240ba27369b4e457dc3a8adf7d667aaa3744 (diff) | |
download | FreeBSD-src-dc39b85c98a3f1fda07d9e48a4a05717dc0556a4.zip FreeBSD-src-dc39b85c98a3f1fda07d9e48a4a05717dc0556a4.tar.gz |
Eliminate two unused functions: vm_phys_alloc_pages() and
vm_phys_free_pages(). Rename vm_phys_alloc_pages_locked() to
vm_phys_alloc_pages() and vm_phys_free_pages_locked() to
vm_phys_free_pages(). Add comments regarding the need for the free page
queues lock to be held by callers to these functions. No functional
changes.
Approved by: re (hrs)
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r-- | sys/vm/vm_page.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 947e5d4..750e295 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -887,7 +887,7 @@ loop: * Allocate from the free queue if the number of free pages * exceeds the minimum for the request class. */ - m = vm_phys_alloc_pages_locked(object != NULL ? + m = vm_phys_alloc_pages(object != NULL ? VM_FREEPOOL_DEFAULT : VM_FREEPOOL_DIRECT, 0); } else if (page_req != VM_ALLOC_INTERRUPT) { mtx_unlock(&vm_page_queue_free_mtx); @@ -913,7 +913,7 @@ loop: mtx_unlock(&vm_page_queue_free_mtx); return (NULL); } - m = vm_phys_alloc_pages_locked(object != NULL ? + m = vm_phys_alloc_pages(object != NULL ? VM_FREEPOOL_DEFAULT : VM_FREEPOOL_DIRECT, 0); } else { vm_page_unlock_queues(); @@ -1161,10 +1161,10 @@ vm_page_free_toq(vm_page_t m) m->flags |= PG_FREE; mtx_lock(&vm_page_queue_free_mtx); if ((m->flags & PG_ZERO) != 0) { - vm_phys_free_pages_locked(m, 0); + vm_phys_free_pages(m, 0); ++vm_page_zero_count; } else { - vm_phys_free_pages_locked(m, 0); + vm_phys_free_pages(m, 0); vm_page_zero_idle_wakeup(); } vm_page_free_wakeup(); |