From owner-svn-src-all@FreeBSD.ORG Tue Apr 28 11:45:36 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 942E71065675; Tue, 28 Apr 2009 11:45:36 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 81E648FC12; Tue, 28 Apr 2009 11:45:36 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n3SBjars048727; Tue, 28 Apr 2009 11:45:36 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n3SBja4w048726; Tue, 28 Apr 2009 11:45:36 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200904281145.n3SBja4w048726@svn.freebsd.org> From: Konstantin Belousov Date: Tue, 28 Apr 2009 11:45:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r191626 - head/sys/vm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2009 11:45:37 -0000 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);