Author: kib
Date: Tue Apr 28 11:45:36 2009
New Revision: 191626
URL: http://svn.freebsd.org/changeset/base/191626

Log:
  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

Modified:
  head/sys/vm/vm_pageout.c

Modified: head/sys/vm/vm_pageout.c
==============================================================================
--- head/sys/vm/vm_pageout.c    Tue Apr 28 11:43:35 2009        (r191625)
+++ head/sys/vm/vm_pageout.c    Tue Apr 28 11:45:36 2009        (r191626)
@@ -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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to