Avoid pointless (but harmless) actions on unmanaged pages.

Reviewed by:	kib
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Alan Cox 2014-08-14 15:46:15 +00:00
parent da02ed7331
commit 9f746b66df

View File

@ -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);
/*