summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-04-28 06:34:47 +0000
committeralc <alc@FreeBSD.org>2010-04-28 06:34:47 +0000
commitbf8b583320ded917c381fddea802978da3283373 (patch)
treeba6d24bc0616fb8f4defcb44d6ea20893e38f02d /sys/vm/vm_fault.c
parente3ebeca68ee63f3d21dcf972f4bce28fd2cb8fae (diff)
downloadFreeBSD-src-bf8b583320ded917c381fddea802978da3283373.zip
FreeBSD-src-bf8b583320ded917c381fddea802978da3283373.tar.gz
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.
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index f409856..058cbb0 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -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
OpenPOWER on IntegriCloud