summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pageout.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-01-27 07:28:51 +0000
committeralc <alc@FreeBSD.org>2006-01-27 07:28:51 +0000
commitd2566b1431297b83680432da2ad266b9c391a10e (patch)
tree8fa35c4596918d250fbfc39cbd93eb3d90832dab /sys/vm/vm_pageout.c
parent7d53fc1d66c6b5d6dc093d7ce63083abaf865e0b (diff)
downloadFreeBSD-src-d2566b1431297b83680432da2ad266b9c391a10e.zip
FreeBSD-src-d2566b1431297b83680432da2ad266b9c391a10e.tar.gz
Use the new macros abstracting the page coloring/queues implementation.
(There are no functional changes.)
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r--sys/vm/vm_pageout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 9d29de3..00fc2ef 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -337,7 +337,7 @@ more:
ib = 0;
break;
}
- if (((p->queue - p->pc) == PQ_CACHE) ||
+ if (VM_PAGE_INQUEUE1(p, PQ_CACHE) ||
(p->flags & (PG_BUSY|PG_UNMANAGED)) || p->busy) {
ib = 0;
break;
@@ -367,7 +367,7 @@ more:
if ((p = vm_page_lookup(object, pindex + is)) == NULL)
break;
- if (((p->queue - p->pc) == PQ_CACHE) ||
+ if (VM_PAGE_INQUEUE1(p, PQ_CACHE) ||
(p->flags & (PG_BUSY|PG_UNMANAGED)) || p->busy) {
break;
}
OpenPOWER on IntegriCloud