phys_pager.c (0bfd163f522701b486e066fa2e56624c02f5081a) | phys_pager.c (e735691b613c2ac4aed254ffefeef429c91c2e0d) |
---|---|
1/*- 2 * Copyright (c) 2000 Peter Wemm 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 117 unchanged lines hidden (view full) --- 126 127 if (object->handle != NULL) { 128 VM_OBJECT_WUNLOCK(object); 129 mtx_lock(&phys_pager_mtx); 130 TAILQ_REMOVE(&phys_pager_object_list, object, pager_object_list); 131 mtx_unlock(&phys_pager_mtx); 132 VM_OBJECT_WLOCK(object); 133 } | 1/*- 2 * Copyright (c) 2000 Peter Wemm 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 117 unchanged lines hidden (view full) --- 126 127 if (object->handle != NULL) { 128 VM_OBJECT_WUNLOCK(object); 129 mtx_lock(&phys_pager_mtx); 130 TAILQ_REMOVE(&phys_pager_object_list, object, pager_object_list); 131 mtx_unlock(&phys_pager_mtx); 132 VM_OBJECT_WLOCK(object); 133 } |
134 object->handle = NULL; 135 object->type = OBJT_DEAD; |
|
134} 135 136/* 137 * Fill as many pages as vm_fault has allocated for us. 138 */ 139static int 140phys_pager_getpages(vm_object_t object, vm_page_t *m, int count, int reqpage) 141{ --- 65 unchanged lines hidden --- | 136} 137 138/* 139 * Fill as many pages as vm_fault has allocated for us. 140 */ 141static int 142phys_pager_getpages(vm_object_t object, vm_page_t *m, int count, int reqpage) 143{ --- 65 unchanged lines hidden --- |