Date: Mon, 25 Aug 2014 20:49:25 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r270627 - stable/10/sys/vm Message-ID: <201408252049.s7PKnPwL025867@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408252049.s7PKnPwL025867>