summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
authorzont <zont@FreeBSD.org>2013-01-28 12:54:53 +0000
committerzont <zont@FreeBSD.org>2013-01-28 12:54:53 +0000
commitb5edc96a845fd932d89c81b1732a89386ea911ad (patch)
treef0f1e93efdda800750720eb48a26324204721198 /sys/vm/vm_fault.c
parent875b69507cd94ec1198d3d62a3f11b71b26cb756 (diff)
downloadFreeBSD-src-b5edc96a845fd932d89c81b1732a89386ea911ad.zip
FreeBSD-src-b5edc96a845fd932d89c81b1732a89386ea911ad.tar.gz
- Add system wide page faults requiring I/O counter.
Reviewed by: alc MFC after: 2 weeks
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 6865782..b79b3f5 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -939,9 +939,10 @@ vnode_locked:
* Unlock everything, and return
*/
unlock_and_deallocate(&fs);
- if (hardfault)
+ if (hardfault) {
+ PCPU_INC(cnt.v_io_faults);
curthread->td_ru.ru_majflt++;
- else
+ } else
curthread->td_ru.ru_minflt++;
return (KERN_SUCCESS);
OpenPOWER on IntegriCloud