summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-10-18 21:09:21 +0000
committeralc <alc@FreeBSD.org>2003-10-18 21:09:21 +0000
commitbccf1d15ab7d014c463b46b05e0b09fb513d7068 (patch)
tree6b34fce36d3e8914acee117ce4e8c611179e0683 /sys/vm/vm_object.c
parent39bde695bfe32db71446c96d796c9d24d4abbf2c (diff)
downloadFreeBSD-src-bccf1d15ab7d014c463b46b05e0b09fb513d7068.zip
FreeBSD-src-bccf1d15ab7d014c463b46b05e0b09fb513d7068.tar.gz
- Increase the object lock's scope in vm_contig_launder() so that access
to the object's type field and the call to vm_pageout_flush() are synchronized. - The above change allows for the eliminaton of the last parameter to vm_pageout_flush(). - Synchronize access to the page's valid field in vm_pageout_flush() using the containing object's lock.
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 1f0f9ca..087959b 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -926,7 +926,7 @@ vm_object_page_collect_flush(vm_object_t object, vm_page_t p, int curgeneration,
runlen = maxb + maxf + 1;
splx(s);
- vm_pageout_flush(ma, runlen, pagerflags, TRUE);
+ vm_pageout_flush(ma, runlen, pagerflags);
for (i = 0; i < runlen; i++) {
if (ma[i]->valid & ma[i]->dirty) {
pmap_page_protect(ma[i], VM_PROT_READ);
OpenPOWER on IntegriCloud