Author: kib
Date: Mon Aug 25 20:49:25 2014
New Revision: 270627
URL: http://svnweb.freebsd.org/changeset/base/270627

Log:
  MFC r269978 (by alc):
  Avoid pointless (but harmless) actions on unmanaged pages.

Modified:
  stable/10/sys/vm/vm_fault.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/vm/vm_fault.c
==============================================================================
--- stable/10/sys/vm/vm_fault.c Mon Aug 25 20:37:12 2014        (r270626)
+++ stable/10/sys/vm/vm_fault.c Mon Aug 25 20:49:25 2014        (r270627)
@@ -856,8 +856,9 @@ vnode_locked:
        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);
 
                /*
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to