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 ||
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to