Deleted Added
full compact
vm_fault.c (60755) vm_fault.c (61081)
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1994 John S. Dyson
5 * All rights reserved.
6 * Copyright (c) 1994 David Greenman
7 * All rights reserved.
8 *

--- 52 unchanged lines hidden (view full) ---

61 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
62 * School of Computer Science
63 * Carnegie Mellon University
64 * Pittsburgh PA 15213-3890
65 *
66 * any improvements or extensions that they make and grant Carnegie the
67 * rights to redistribute these changes.
68 *
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1994 John S. Dyson
5 * All rights reserved.
6 * Copyright (c) 1994 David Greenman
7 * All rights reserved.
8 *

--- 52 unchanged lines hidden (view full) ---

61 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
62 * School of Computer Science
63 * Carnegie Mellon University
64 * Pittsburgh PA 15213-3890
65 *
66 * any improvements or extensions that they make and grant Carnegie the
67 * rights to redistribute these changes.
68 *
69 * $FreeBSD: head/sys/vm/vm_fault.c 60755 2000-05-21 12:50:18Z peter $
69 * $FreeBSD: head/sys/vm/vm_fault.c 61081 2000-05-29 22:40:54Z dillon $
70 */
71
72/*
73 * Page fault handling module.
74 */
75
76#include <sys/param.h>
77#include <sys/systm.h>

--- 340 unchanged lines hidden (view full) ---

418 for(tmppindex = fs.first_pindex - 1;
419 tmppindex >= firstpindex;
420 --tmppindex) {
421 vm_page_t mt;
422 mt = vm_page_lookup( fs.first_object, tmppindex);
423 if (mt == NULL || (mt->valid != VM_PAGE_BITS_ALL))
424 break;
425 if (mt->busy ||
70 */
71
72/*
73 * Page fault handling module.
74 */
75
76#include <sys/param.h>
77#include <sys/systm.h>

--- 340 unchanged lines hidden (view full) ---

418 for(tmppindex = fs.first_pindex - 1;
419 tmppindex >= firstpindex;
420 --tmppindex) {
421 vm_page_t mt;
422 mt = vm_page_lookup( fs.first_object, tmppindex);
423 if (mt == NULL || (mt->valid != VM_PAGE_BITS_ALL))
424 break;
425 if (mt->busy ||
426 (mt->flags & (PG_BUSY | PG_FICTITIOUS)) ||
426 (mt->flags & (PG_BUSY | PG_FICTITIOUS | PG_UNMANAGED)) ||
427 mt->hold_count ||
428 mt->wire_count)
429 continue;
430 if (mt->dirty == 0)
431 vm_page_test_dirty(mt);
432 if (mt->dirty) {
433 vm_page_protect(mt, VM_PROT_NONE);
434 vm_page_deactivate(mt);

--- 798 unchanged lines hidden ---
427 mt->hold_count ||
428 mt->wire_count)
429 continue;
430 if (mt->dirty == 0)
431 vm_page_test_dirty(mt);
432 if (mt->dirty) {
433 vm_page_protect(mt, VM_PROT_NONE);
434 vm_page_deactivate(mt);

--- 798 unchanged lines hidden ---