diff options
author | alc <alc@FreeBSD.org> | 2006-01-27 07:28:51 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2006-01-27 07:28:51 +0000 |
commit | d2566b1431297b83680432da2ad266b9c391a10e (patch) | |
tree | 8fa35c4596918d250fbfc39cbd93eb3d90832dab /sys/vm/vm_object.c | |
parent | 7d53fc1d66c6b5d6dc093d7ce63083abaf865e0b (diff) | |
download | FreeBSD-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_object.c')
-rw-r--r-- | sys/vm/vm_object.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 60ede1d..b1329ba 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -719,7 +719,7 @@ vm_object_page_clean(vm_object_t object, vm_pindex_t start, vm_pindex_t end, int curgeneration = object->generation; p = vm_page_lookup(object, tscan); if (p == NULL || p->valid == 0 || - (p->queue - p->pc) == PQ_CACHE) { + VM_PAGE_INQUEUE1(p, PQ_CACHE)) { if (--scanlimit == 0) break; ++tscan; @@ -808,7 +808,7 @@ again: if (((p->flags & PG_CLEANCHK) == 0) || (pi < tstart) || (pi >= tend) || (p->valid == 0) || - ((p->queue - p->pc) == PQ_CACHE)) { + VM_PAGE_INQUEUE1(p, PQ_CACHE)) { vm_page_flag_clear(p, PG_CLEANCHK); continue; } @@ -886,7 +886,7 @@ vm_object_page_collect_flush(vm_object_t object, vm_page_t p, int curgeneration, (tp->flags & PG_CLEANCHK) == 0) || (tp->busy != 0)) break; - if((tp->queue - tp->pc) == PQ_CACHE) { + if (VM_PAGE_INQUEUE1(tp, PQ_CACHE)) { vm_page_flag_clear(tp, PG_CLEANCHK); break; } @@ -914,7 +914,7 @@ vm_object_page_collect_flush(vm_object_t object, vm_page_t p, int curgeneration, (tp->flags & PG_CLEANCHK) == 0) || (tp->busy != 0)) break; - if ((tp->queue - tp->pc) == PQ_CACHE) { + if (VM_PAGE_INQUEUE1(tp, PQ_CACHE)) { vm_page_flag_clear(tp, PG_CLEANCHK); break; } |