vm_fault.c (051669e8bbcdcd1f9702ded5ca8540c14dfa1c33) | vm_fault.c (b70f6e15139906815d6dea9d16e580d1701e4278) |
---|---|
1/*- 2 * SPDX-License-Identifier: (BSD-4-Clause AND MIT-CMU) 3 * 4 * Copyright (c) 1991, 1993 5 * The Regents of the University of California. All rights reserved. 6 * Copyright (c) 1994 John S. Dyson 7 * All rights reserved. 8 * Copyright (c) 1994 David Greenman --- 1059 unchanged lines hidden (view full) --- 1068 fs->m = vm_page_alloc(fs->object, fs->pindex, alloc_req); 1069 } 1070 if (fs->m == NULL) { 1071 unlock_and_deallocate(fs); 1072 if (vm_pfault_oom_attempts < 0 || 1073 fs->oom < vm_pfault_oom_attempts) { 1074 fs->oom++; 1075 vm_waitpfault(dset, vm_pfault_oom_wait * hz); | 1/*- 2 * SPDX-License-Identifier: (BSD-4-Clause AND MIT-CMU) 3 * 4 * Copyright (c) 1991, 1993 5 * The Regents of the University of California. All rights reserved. 6 * Copyright (c) 1994 John S. Dyson 7 * All rights reserved. 8 * Copyright (c) 1994 David Greenman --- 1059 unchanged lines hidden (view full) --- 1068 fs->m = vm_page_alloc(fs->object, fs->pindex, alloc_req); 1069 } 1070 if (fs->m == NULL) { 1071 unlock_and_deallocate(fs); 1072 if (vm_pfault_oom_attempts < 0 || 1073 fs->oom < vm_pfault_oom_attempts) { 1074 fs->oom++; 1075 vm_waitpfault(dset, vm_pfault_oom_wait * hz); |
1076 } else { 1077 if (bootverbose) 1078 printf( 1079 "proc %d (%s) failed to alloc page on fault, starting OOM\n", 1080 curproc->p_pid, curproc->p_comm); 1081 vm_pageout_oom(VM_OOM_MEM_PF); 1082 fs->oom = 0; |
|
1076 } | 1083 } |
1077 if (bootverbose) 1078 printf( 1079"proc %d (%s) failed to alloc page on fault, starting OOM\n", 1080 curproc->p_pid, curproc->p_comm); 1081 vm_pageout_oom(VM_OOM_MEM_PF); | |
1082 return (KERN_RESOURCE_SHORTAGE); 1083 } 1084 fs->oom = 0; 1085 1086 return (KERN_NOT_RECEIVER); 1087} 1088 1089/* --- 923 unchanged lines hidden --- | 1084 return (KERN_RESOURCE_SHORTAGE); 1085 } 1086 fs->oom = 0; 1087 1088 return (KERN_NOT_RECEIVER); 1089} 1090 1091/* --- 923 unchanged lines hidden --- |