vm_pager.c (f23b4c91c4fb94e1bb6aeb4e7747f4ccf7767b41) vm_pager.c (05f0fdd26aa1789c04ae89358880922a54d197c3)
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
57 * School of Computer Science
58 * Carnegie Mellon University
59 * Pittsburgh PA 15213-3890
60 *
61 * any improvements or extensions that they make and grant Carnegie the
62 * rights to redistribute these changes.
63 *
1/*
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
57 * School of Computer Science
58 * Carnegie Mellon University
59 * Pittsburgh PA 15213-3890
60 *
61 * any improvements or extensions that they make and grant Carnegie the
62 * rights to redistribute these changes.
63 *
64 * $Id: vm_pager.c,v 1.6 1994/08/07 14:53:27 davidg Exp $
64 * $Id: vm_pager.c,v 1.7 1994/08/18 22:36:09 wollman Exp $
65 */
66
67/*
68 * Paging space routine stubs. Emulates a matchmaker-like interface
69 * for builtin pagers.
70 */
71
72#include <sys/param.h>
73#include <sys/systm.h>
65 */
66
67/*
68 * Paging space routine stubs. Emulates a matchmaker-like interface
69 * for builtin pagers.
70 */
71
72#include <sys/param.h>
73#include <sys/systm.h>
74#include <sys/proc.h>
74#include <sys/malloc.h>
75#include <sys/buf.h>
76#include <sys/ucred.h>
77
78#include <vm/vm.h>
79#include <vm/vm_page.h>
80#include <vm/vm_kern.h>
81

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

182int
183vm_pager_get_pages(pager, m, count, reqpage, sync)
184 vm_pager_t pager;
185 vm_page_t *m;
186 int count;
187 int reqpage;
188 boolean_t sync;
189{
75#include <sys/malloc.h>
76#include <sys/buf.h>
77#include <sys/ucred.h>
78
79#include <vm/vm.h>
80#include <vm/vm_page.h>
81#include <vm/vm_kern.h>
82

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

183int
184vm_pager_get_pages(pager, m, count, reqpage, sync)
185 vm_pager_t pager;
186 vm_page_t *m;
187 int count;
188 int reqpage;
189 boolean_t sync;
190{
190 extern int vm_pageout_count;
191 int i;
192
193 if (pager == NULL) {
194 for (i=0;i<count;i++) {
195 if( i != reqpage) {
196 PAGE_WAKEUP(m[i]);
197 vm_page_free(m[i]);
198 }

--- 226 unchanged lines hidden ---
191 int i;
192
193 if (pager == NULL) {
194 for (i=0;i<count;i++) {
195 if( i != reqpage) {
196 PAGE_WAKEUP(m[i]);
197 vm_page_free(m[i]);
198 }

--- 226 unchanged lines hidden ---