summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-06-29 21:15:22 +0000
committerThomas Bushnell <thomas@gnu.org>1999-06-29 21:15:22 +0000
commit1051c9f7345d20dbf989363afebcc0918c1963c1 (patch)
tree14ccc238eda6bf1792b19cd8fadac30c3ba0de59 /vm
parentcd993532f8189e0af338867c98cb4f1232b36350 (diff)
1999-06-29 Thomas Bushnell, BSG <tb@mit.edu>
* vm/vm_resident.c (vm_page_grab): Don't bounce requests when vm_page_external_count == vm_page_external_limit, so that before initialization is complete we can still allocate memory without relying on current_thread.
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_resident.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_resident.c b/vm/vm_resident.c
index 8573f51..58d9827 100644
--- a/vm/vm_resident.c
+++ b/vm/vm_resident.c
@@ -860,7 +860,7 @@ vm_page_t vm_page_grab(
*/
if (((vm_page_free_count < vm_page_free_reserved) ||
- (vm_page_external_count >= vm_page_external_limit)) &&
+ (vm_page_external_count > vm_page_external_limit)) &&
!current_thread()->vm_privilege) {
simple_unlock(&vm_page_queue_free_lock);
return VM_PAGE_NULL;