vm_fault.c (22ba64e870f96ed4e94b0b03674a898c937ff7de) vm_fault.c (cd41fc123ea3ae3bdc43c65f4fcdeb07f27059f8)
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 * $Id: vm_fault.c,v 1.31 1995/09/14 13:42:52 dyson Exp $
69 * $Id: vm_fault.c,v 1.32 1995/09/24 19:47:58 dyson Exp $
70 */
71
72/*
73 * Page fault handling module.
74 */
75
76#include <sys/param.h>
77#include <sys/systm.h>

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

82#include <sys/resourcevar.h>
83
84#include <vm/vm.h>
85#include <vm/vm_page.h>
86#include <vm/vm_pageout.h>
87#include <vm/vm_kern.h>
88#include <vm/vm_pager.h>
89#include <vm/vnode_pager.h>
70 */
71
72/*
73 * Page fault handling module.
74 */
75
76#include <sys/param.h>
77#include <sys/systm.h>

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

82#include <sys/resourcevar.h>
83
84#include <vm/vm.h>
85#include <vm/vm_page.h>
86#include <vm/vm_pageout.h>
87#include <vm/vm_kern.h>
88#include <vm/vm_pager.h>
89#include <vm/vnode_pager.h>
90#include <vm/swap_pager.h>
90
91int vm_fault_additional_pages __P((vm_page_t, int, int, vm_page_t *, int *));
92
93#define VM_FAULT_READ_AHEAD 4
94#define VM_FAULT_READ_BEHIND 3
95#define VM_FAULT_READ (VM_FAULT_READ_AHEAD+VM_FAULT_READ_BEHIND+1)
91
92int vm_fault_additional_pages __P((vm_page_t, int, int, vm_page_t *, int *));
93
94#define VM_FAULT_READ_AHEAD 4
95#define VM_FAULT_READ_BEHIND 3
96#define VM_FAULT_READ (VM_FAULT_READ_AHEAD+VM_FAULT_READ_BEHIND+1)
96extern int swap_pager_full;
97
98/*
99 * vm_fault:
100 *
101 * Handle a page fault occuring at the given address,
102 * requiring the given permissions, in the map specified.
103 * If successful, the page is inserted into the
104 * associated physical map.

--- 898 unchanged lines hidden ---
97
98/*
99 * vm_fault:
100 *
101 * Handle a page fault occuring at the given address,
102 * requiring the given permissions, in the map specified.
103 * If successful, the page is inserted into the
104 * associated physical map.

--- 898 unchanged lines hidden ---