Skip to content

Commit

Permalink
Avoid pointless (but harmless) actions on unmanaged pages.
Browse files Browse the repository at this point in the history
Reviewed by:	kib
Sponsored by:	EMC / Isilon Storage Division
  • Loading branch information
alcriceedu committed Aug 14, 2014
1 parent ceb22d5 commit e11aaa2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sys/vm/vm_fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit e11aaa2

Please sign in to comment.