summaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-07-30 23:32:25 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-07-30 23:32:25 +0000
commitf611401e33bc0bb6bad23e71c77526e1f83dd744 (patch)
tree92d544850f40cfde3bf033ee309dc8c9382ac7d8 /sys/vm
parentc8e8720d9608e1d404551392fa626de1242145cc (diff)
backout the curproc dereference change says kstailey@openbsd.org
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_fault.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 9b30d5b1295..f2529758cfc 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_fault.c,v 1.9 1997/07/30 20:31:24 niklas Exp $ */
+/* $OpenBSD: vm_fault.c,v 1.10 1997/07/30 23:32:24 niklas Exp $ */
/* $NetBSD: vm_fault.c,v 1.20 1997/02/18 13:39:33 mrg Exp $ */
/*
@@ -320,8 +320,7 @@ vm_fault(map, vaddr, fault_type, change_wiring)
*/
UNLOCK_MAP;
cnt.v_pageins++;
- if (curproc)
- curproc->p_addr->u_stats.p_ru.ru_majflt++;
+ curproc->p_addr->u_stats.p_ru.ru_majflt++;
rv = vm_pager_get(object->pager, m, TRUE);
/*