summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-04-28 11:45:36 +0000
committerkib <kib@FreeBSD.org>2009-04-28 11:45:36 +0000
commit83725d69bc2a6041f77c41f7e2f4fe21c2829ad6 (patch)
treeb66601804d752ae554c5f32d8d5db975bfed1f1a /sys/vm
parente7ebaf3f1541c2e7e5bc7d65843d066278ecb6fb (diff)
downloadFreeBSD-src-83725d69bc2a6041f77c41f7e2f4fe21c2829ad6.zip
FreeBSD-src-83725d69bc2a6041f77c41f7e2f4fe21c2829ad6.tar.gz
Use the acquired reference to the vmspace instead of direct dereferencing
of p->p_vmspace in a place where it was missed in r191277. Noted by: pluknet gmail com
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_pageout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index bfc343b..6da486e 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -1243,7 +1243,7 @@ vm_pageout_oom(int shortage)
PROC_UNLOCK(p);
continue;
}
- size = vmspace_swap_count(p->p_vmspace);
+ size = vmspace_swap_count(vm);
vm_map_unlock_read(&vm->vm_map);
if (shortage == VM_OOM_MEM)
size += vmspace_resident_count(vm);
OpenPOWER on IntegriCloud