mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Be more selctive about when we clear p->valid.
Submitted by: John Dyson <toor@dyson.iquest.net>
This commit is contained in:
parent
ac2143fc96
commit
ce65e68c03
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39700
@ -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.127 1998/08/24 08:39:37 dfr Exp $
|
||||
* $Id: vm_object.c,v 1.128 1998/09/04 08:06:57 dfr Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1323,7 +1323,8 @@ vm_object_page_remove(object, start, end, clean_only)
|
||||
if (all || ((start <= p->pindex) && (p->pindex < end))) {
|
||||
if (p->wire_count != 0) {
|
||||
vm_page_protect(p, VM_PROT_NONE);
|
||||
p->valid = 0;
|
||||
if (!clean_only)
|
||||
p->valid = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -1351,8 +1352,9 @@ vm_object_page_remove(object, start, end, clean_only)
|
||||
if ((p = vm_page_lookup(object, start)) != 0) {
|
||||
|
||||
if (p->wire_count != 0) {
|
||||
p->valid = 0;
|
||||
vm_page_protect(p, VM_PROT_NONE);
|
||||
if (!clean_only)
|
||||
p->valid = 0;
|
||||
start += 1;
|
||||
size -= 1;
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user