summaryrefslogtreecommitdiff
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 033486cd54b..dcde5af75b2 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: vm_fault.c,v 1.2 1996/03/03 17:45:28 niklas Exp $ */
-/* $NetBSD: vm_fault.c,v 1.17 1996/02/05 01:53:55 christos Exp $ */
+/* $OpenBSD: vm_fault.c,v 1.3 1996/05/23 08:34:51 deraadt Exp $ */
+/* $NetBSD: vm_fault.c,v 1.18 1996/05/20 17:40:02 mrg Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -70,7 +70,9 @@
*/
#include <sys/param.h>
+#include <sys/proc.h>
#include <sys/systm.h>
+#include <sys/user.h>
#include <vm/vm.h>
#include <vm/vm_page.h>
@@ -325,6 +327,8 @@ vm_fault(map, vaddr, fault_type, change_wiring)
*/
UNLOCK_MAP;
cnt.v_pageins++;
+ if (curproc)
+ curproc->p_addr->u_stats.p_ru.ru_majflt++;
rv = vm_pager_get(object->pager, m, TRUE);
/*