Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Apr 2009 11:45:36 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191626 - head/sys/vm
Message-ID:  <200904281145.n3SBja4w048726@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904281145.n3SBja4w048726>