summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r--sys/vm/vm_glue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index a3749bf..cb2a657 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -986,8 +986,8 @@ swapout(p)
("swapout: there is a thread not safe for swapout"));
}
#endif /* INVARIANTS */
-
- ++p->p_stats->p_ru.ru_nswap;
+ td = FIRST_THREAD_IN_PROC(p);
+ ++td->td_ru.ru_nswap;
/*
* remember the process resident count
*/
OpenPOWER on IntegriCloud