Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jun 2014 07:03:48 +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: r267766 - head/sys/vm
Message-ID:  <201406230703.s5N73mrU053198@svn.freebsd.org>

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



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