From owner-svn-src-head@FreeBSD.ORG Sun Jun 15 07:53:00 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 75BA025F; Sun, 15 Jun 2014 07:53:00 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 635982BCB; Sun, 15 Jun 2014 07:53:00 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5F7r0A2086610; Sun, 15 Jun 2014 07:53:00 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5F7r0Jl086609; Sun, 15 Jun 2014 07:53:00 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <201406150753.s5F7r0Jl086609@svn.freebsd.org> From: Alan Cox Date: Sun, 15 Jun 2014 07:53:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267497 - head/sys/vm X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jun 2014 07:53:00 -0000 Author: alc Date: Sun Jun 15 07:52:59 2014 New Revision: 267497 URL: http://svnweb.freebsd.org/changeset/base/267497 Log: One of the intentions behind r267254 was that the global variable "sgrowsiz" would be read once and cached in a local variable so that the resource limit check and map entry insertion would be guaranteed to use the same value. However, the value being passed to vm_map_insert() is still from "sgrowsiz" and not the local variable. Correct this oversight. Reviewed by: kib Modified: head/sys/vm/vm_map.c Modified: head/sys/vm/vm_map.c ============================================================================== --- head/sys/vm/vm_map.c Sun Jun 15 06:56:10 2014 (r267496) +++ head/sys/vm/vm_map.c Sun Jun 15 07:52:59 2014 (r267497) @@ -3388,7 +3388,7 @@ vm_map_stack(vm_map_t map, vm_offset_t a rv = KERN_NO_SPACE; goto out; } - rv = vm_map_stack_locked(map, addrbos, max_ssize, sgrowsiz, prot, + rv = vm_map_stack_locked(map, addrbos, max_ssize, growsize, prot, max, cow); out: vm_map_unlock(map);