summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/vm_machdep.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-10-30 07:37:14 +0000
committeralc <alc@FreeBSD.org>1999-10-30 07:37:14 +0000
commita301513e8024c35e825bcf07cf42e7f82eeb2226 (patch)
treeb8d896d556afc51871db14a4580f03ad3c2461ef /sys/amd64/amd64/vm_machdep.c
parent5e906c1f10a710b3e76fa761ee5ee3e3686f62ea (diff)
downloadFreeBSD-src-a301513e8024c35e825bcf07cf42e7f82eeb2226.zip
FreeBSD-src-a301513e8024c35e825bcf07cf42e7f82eeb2226.tar.gz
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
Diffstat (limited to 'sys/amd64/amd64/vm_machdep.c')
-rw-r--r--sys/amd64/amd64/vm_machdep.c4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud