Date: Thu, 14 Aug 2014 15:46:16 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269978 - head/sys/vm Message-ID: <201408141546.s7EFkGgo059256@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408141546.s7EFkGgo059256>