From a301513e8024c35e825bcf07cf42e7f82eeb2226 Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 30 Oct 1999 07:37:14 +0000 Subject: The core of this patch is to vm/vm_page.h. The effects are two-fold: (1) to eliminate an extra (useless) level of indirection in half of the page queue accesses and (2) to use a single name for each queue throughout, instead of, e.g., "vm_page_queue_active" in some places and "vm_page_queues[PQ_ACTIVE]" in others. Reviewed by: dillon --- sys/amd64/amd64/vm_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/amd64/amd64/vm_machdep.c') diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c index 2b5fb7b..9ca7d3a 100644 --- a/sys/amd64/amd64/vm_machdep.c +++ b/sys/amd64/amd64/vm_machdep.c @@ -554,7 +554,7 @@ vm_page_zero_idle() m = vm_page_list_find(PQ_FREE, free_rover, FALSE); if (m != NULL && (m->flags & PG_ZERO) == 0) { vm_page_queues[m->queue].lcnt--; - TAILQ_REMOVE(vm_page_queues[m->queue].pl, m, pageq); + TAILQ_REMOVE(&vm_page_queues[m->queue].pl, m, pageq); m->queue = PQ_NONE; splx(s); #if 0 @@ -568,7 +568,7 @@ vm_page_zero_idle() vm_page_flag_set(m, PG_ZERO); m->queue = PQ_FREE + m->pc; vm_page_queues[m->queue].lcnt++; - TAILQ_INSERT_TAIL(vm_page_queues[m->queue].pl, m, + TAILQ_INSERT_TAIL(&vm_page_queues[m->queue].pl, m, pageq); ++vm_page_zero_count; ++cnt_prezero; -- cgit v1.1