Avoid pointless (but harmless) actions on unmanaged pages.
Reviewed by: kib Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
da02ed7331
commit
9f746b66df
@ -851,8 +851,9 @@ RetryFault:;
|
||||
if (hardfault)
|
||||
fs.entry->next_read = fs.pindex + faultcount - reqpage;
|
||||
|
||||
if ((prot & VM_PROT_WRITE) != 0 ||
|
||||
(fault_flags & VM_FAULT_DIRTY) != 0) {
|
||||
if (((prot & VM_PROT_WRITE) != 0 ||
|
||||
(fault_flags & VM_FAULT_DIRTY) != 0) &&
|
||||
(fs.m->oflags & VPO_UNMANAGED) == 0) {
|
||||
vm_object_set_writeable_dirty(fs.object);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user