summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2007-12-11 21:20:34 +0000
committeralc <alc@FreeBSD.org>2007-12-11 21:20:34 +0000
commit5929e7ecb673101b3cb117fc8af4281cc71b3d0d (patch)
tree5b0dbf76f59613d8acc7eb12e62308e3a3bd7275 /sys/vm
parenta881501a6f93c21924bebe632e3de39fb0900cd7 (diff)
downloadFreeBSD-src-5929e7ecb673101b3cb117fc8af4281cc71b3d0d.zip
FreeBSD-src-5929e7ecb673101b3cb117fc8af4281cc71b3d0d.tar.gz
Simplify vm_page_free_toq().
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_page.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index fcc8567..15a0027 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -1315,13 +1315,11 @@ vm_page_free_toq(vm_page_t m)
m->flags |= PG_FREE;
mtx_lock(&vm_page_queue_free_mtx);
cnt.v_free_count++;
- if ((m->flags & PG_ZERO) != 0) {
- vm_phys_free_pages(m, 0);
+ vm_phys_free_pages(m, 0);
+ if ((m->flags & PG_ZERO) != 0)
++vm_page_zero_count;
- } else {
- vm_phys_free_pages(m, 0);
+ else
vm_page_zero_idle_wakeup();
- }
vm_page_free_wakeup();
mtx_unlock(&vm_page_queue_free_mtx);
}
OpenPOWER on IntegriCloud