svn commit: r269978 - head/sys/vm
Alan Cox
alc at FreeBSD.org
Thu Aug 14 15:46:16 UTC 2014
Author: alc
Date: Thu Aug 14 15:46:15 2014
New Revision: 269978
URL: http://svnweb.freebsd.org/changeset/base/269978
Log:
Avoid pointless (but harmless) actions on unmanaged pages.
Reviewed by: kib
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sys/vm/vm_fault.c
Modified: head/sys/vm/vm_fault.c
==============================================================================
--- head/sys/vm/vm_fault.c Thu Aug 14 14:59:40 2014 (r269977)
+++ head/sys/vm/vm_fault.c Thu Aug 14 15:46:15 2014 (r269978)
@@ -851,8 +851,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);
/*
More information about the svn-src-all
mailing list