From owner-svn-src-all@FreeBSD.ORG Mon Jun 23 07:03:48 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 765B8197; Mon, 23 Jun 2014 07:03:48 +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 640EC24FC; Mon, 23 Jun 2014 07:03:48 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5N73mRS053199; Mon, 23 Jun 2014 07:03:48 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5N73mrU053198; Mon, 23 Jun 2014 07:03:48 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201406230703.s5N73mrU053198@svn.freebsd.org> From: Konstantin Belousov Date: Mon, 23 Jun 2014 07:03:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267766 - 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-all@freebsd.org X-Mailman-Version: 2.1.18 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: Mon, 23 Jun 2014 07:03:48 -0000 Author: kib Date: Mon Jun 23 07:03:47 2014 New Revision: 267766 URL: http://svnweb.freebsd.org/changeset/base/267766 Log: Use correct names for the flags. MAP_ENTRY_GROWS_* have the same numerical values as MAP_STACK_GROWS_*, but the former is for entries' eflags, while the later for the cow argument of vm_map_insert(). Submitted by: alc Modified: head/sys/vm/vm_map.c Modified: head/sys/vm/vm_map.c ============================================================================== --- head/sys/vm/vm_map.c Mon Jun 23 05:42:52 2014 (r267765) +++ head/sys/vm/vm_map.c Mon Jun 23 07:03:47 2014 (r267766) @@ -1215,7 +1215,7 @@ charged: } else if ((prev_entry != &map->header) && (prev_entry->eflags == protoeflags) && - (cow & (MAP_ENTRY_GROWS_DOWN | MAP_ENTRY_GROWS_UP)) == 0 && + (cow & (MAP_STACK_GROWS_DOWN | MAP_STACK_GROWS_UP)) == 0 && (prev_entry->end == start) && (prev_entry->wired_count == 0) && (prev_entry->cred == cred ||