diff options
author | dg <dg@FreeBSD.org> | 1994-10-05 09:02:53 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-10-05 09:02:53 +0000 |
commit | 66cba7eaa57d9b5f9afa015d93715f53ea5a8fd6 (patch) | |
tree | c215a4ac7e67fd145b513b4d3faab09e3474a6e9 | |
parent | f87d72f160db35e5d767e7b2dde3fd2133d5d863 (diff) | |
download | FreeBSD-src-66cba7eaa57d9b5f9afa015d93715f53ea5a8fd6.zip FreeBSD-src-66cba7eaa57d9b5f9afa015d93715f53ea5a8fd6.tar.gz |
Fixed minor bug caused by some missing parens that can result in slightly
reduced paging performance by missing a clustering opportunity. Found
by Poul-Henning Kamp with gcc -Wall.
-rw-r--r-- | sys/vm/vm_pageout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index dac738c..10408ca 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -65,7 +65,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_pageout.c,v 1.12 1994/09/12 15:06:14 davidg Exp $ + * $Id: vm_pageout.c,v 1.13 1994/10/04 03:05:09 davidg Exp $ */ /* @@ -196,7 +196,7 @@ vm_pageout_clean(m, sync) for (i = 1; i < vm_pageout_page_count; i++) { if (ms[i] = vm_page_lookup(object, offset+i*NBPG)) { if (( ((ms[i]->flags & (PG_CLEAN|PG_INACTIVE|PG_BUSY)) == PG_INACTIVE) - || ( (ms[i]->flags & PG_CLEAN|PG_BUSY) == 0 && sync == VM_PAGEOUT_FORCE)) + || ( (ms[i]->flags & (PG_CLEAN|PG_BUSY)) == 0 && sync == VM_PAGEOUT_FORCE)) && (ms[i]->wire_count == 0) && (ms[i]->busy == 0) && (ms[i]->hold_count == 0)) |