Adjust gd_vme_avail after ensuring that sufficient entries exist rather
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 24 Jul 2004 20:25:47 +0000 (20:25 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 24 Jul 2004 20:25:47 +0000 (20:25 +0000)
commitac13eccd329dea2201b1d4ce5e476e4b2a8ed05f
tree89bdacc733d7da78b392729c2dfb882380f81a14
parent8ec60c3fa420ec5327586ddcf676993aae0e857a
Adjust gd_vme_avail after ensuring that sufficient entries exist rather
then before.  This should solve a panic where the userland
vm_map_entry_reserve() was eating out of the kernel's reserve and causing
a recursive zalloc() to panic.
sys/vm/vm_map.c