View | Details | Raw Unified | Return to bug 62102
Collapse All | Expand All

(-)vm_unix.c.new (-1 / +6 lines)
Lines 83-92 Link Here
83
83
84
	do_map_wirefuture = FALSE;
84
	do_map_wirefuture = FALSE;
85
	new = round_page((vm_offset_t)uap->nsize);
85
	new = round_page((vm_offset_t)uap->nsize);
86
	vm_map_lock(&vm->vm_map);
87
86
88
	base = round_page((vm_offset_t) vm->vm_daddr);
87
	base = round_page((vm_offset_t) vm->vm_daddr);
89
	old = base + ctob(vm->vm_dsize);
88
	old = base + ctob(vm->vm_dsize);
89
90
	if (new == old)
91
	   return 0;
92
93
	vm_map_lock(&vm->vm_map);
94
90
	if (new > base) {
95
	if (new > base) {
91
		/*
96
		/*
92
		 * Check the resource limit, but allow a process to reduce
97
		 * Check the resource limit, but allow a process to reduce

Return to bug 62102