From 5929e7ecb673101b3cb117fc8af4281cc71b3d0d Mon Sep 17 00:00:00 2001 From: alc Date: Tue, 11 Dec 2007 21:20:34 +0000 Subject: Simplify vm_page_free_toq(). --- sys/vm/vm_page.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/vm') 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); } -- cgit v1.1