Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Apr 2010 06:34:47 +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: r207308 - head/sys/vm
Message-ID:  <201004280634.o3S6YlpJ048158@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Wed Apr 28 06:34:47 2010
New Revision: 207308
URL: http://svn.freebsd.org/changeset/base/207308

Log:
  Setting PG_REFERENCED on a page at the end of vm_fault() is redundant since
  the page table entry's accessed bit is either preset by the immediately
  preceding call to pmap_enter() or by hardware (or software) upon return
  from vm_fault() when the faulting access is restarted.

Modified:
  head/sys/vm/vm_fault.c

Modified: head/sys/vm/vm_fault.c
==============================================================================
--- head/sys/vm/vm_fault.c	Wed Apr 28 05:33:59 2010	(r207307)
+++ head/sys/vm/vm_fault.c	Wed Apr 28 06:34:47 2010	(r207308)
@@ -924,7 +924,6 @@ vnode_locked:
 		vm_fault_prefault(fs.map->pmap, vaddr, fs.entry);
 	VM_OBJECT_LOCK(fs.object);
 	vm_page_lock_queues();
-	vm_page_flag_set(fs.m, PG_REFERENCED);
 
 	/*
 	 * If the page is not wired down, then put it where the pageout daemon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004280634.o3S6YlpJ048158>