diff options
author | Alan Cox <alc@FreeBSD.org> | 2003-10-18 21:09:21 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2003-10-18 21:09:21 +0000 |
commit | 7a93508274b42ce7a781b65d9a9128406fc7c914 (patch) | |
tree | 6b34fce36d3e8914acee117ce4e8c611179e0683 /sys/vm/vm_object.c | |
parent | fc1cbf43315798aeffda8ad2ebc934306948a0de (diff) | |
download | src-7a93508274b42ce7a781b65d9a9128406fc7c914.tar.gz src-7a93508274b42ce7a781b65d9a9128406fc7c914.zip |
- 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.
Notes
Notes:
svn path=/head/; revision=121226
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r-- | sys/vm/vm_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 1f0f9ca66c58..087959b95cd1 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); |