svn commit: r267766 - head/sys/vm
Konstantin Belousov
kib at FreeBSD.org
Mon Jun 23 07:03:48 UTC 2014
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 ||
More information about the svn-src-head
mailing list