diff options
author | zont <zont@FreeBSD.org> | 2013-01-28 12:54:53 +0000 |
---|---|---|
committer | zont <zont@FreeBSD.org> | 2013-01-28 12:54:53 +0000 |
commit | b5edc96a845fd932d89c81b1732a89386ea911ad (patch) | |
tree | f0f1e93efdda800750720eb48a26324204721198 /sys/vm/vm_fault.c | |
parent | 875b69507cd94ec1198d3d62a3f11b71b26cb756 (diff) | |
download | FreeBSD-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.c | 5 |
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); |