mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 14:39:37 +00:00
Fixed a problem in _vm_object_page_clean that could cause an
infinite loop.
This commit is contained in:
parent
abeeb9ceb2
commit
7e15fd2757
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7968
@ -61,7 +61,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: vm_object.c,v 1.42 1995/04/16 03:11:28 davidg Exp $
|
||||
* $Id: vm_object.c,v 1.43 1995/04/16 12:56:19 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -529,9 +529,11 @@ startover:
|
||||
if ((p->valid & p->dirty) != 0) {
|
||||
vm_offset_t tincr;
|
||||
tincr = vm_pageout_clean(p, VM_PAGEOUT_FORCE);
|
||||
pgcount -= (tincr - 1);
|
||||
tincr *= PAGE_SIZE;
|
||||
tstart += tincr - PAGE_SIZE;
|
||||
if( tincr) {
|
||||
pgcount -= (tincr - 1);
|
||||
tincr *= PAGE_SIZE;
|
||||
tstart += tincr - PAGE_SIZE;
|
||||
}
|
||||
allclean = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user