kill the "fault_type" argument to pager's pgo_fault() methods
it is never used (and using it would comprise an abstraction violation imho)
This commit is contained in:
parent
0638b201c9
commit
2d1a0b57b6
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_bio.c,v 1.43 2006/01/31 14:11:25 yamt Exp $ */
|
||||
/* $NetBSD: uvm_bio.c,v 1.44 2006/02/22 22:28:18 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Chuck Silvers.
|
||||
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.43 2006/01/31 14:11:25 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.44 2006/02/22 22:28:18 drochner Exp $");
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
@ -54,7 +54,7 @@ __KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.43 2006/01/31 14:11:25 yamt Exp $");
|
||||
*/
|
||||
|
||||
static int ubc_fault(struct uvm_faultinfo *, vaddr_t, struct vm_page **,
|
||||
int, int, vm_fault_t, vm_prot_t, int);
|
||||
int, int, vm_prot_t, int);
|
||||
static struct ubc_map *ubc_find_mapping(struct uvm_object *, voff_t);
|
||||
|
||||
/*
|
||||
@ -204,7 +204,7 @@ ubc_init(void)
|
||||
|
||||
static int
|
||||
ubc_fault(struct uvm_faultinfo *ufi, vaddr_t ign1, struct vm_page **ign2,
|
||||
int ign3, int ign4, vm_fault_t fault_type, vm_prot_t access_type,
|
||||
int ign3, int ign4, vm_prot_t access_type,
|
||||
int flags)
|
||||
{
|
||||
struct uvm_object *uobj;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_device.c,v 1.46 2005/12/11 12:25:29 christos Exp $ */
|
||||
/* $NetBSD: uvm_device.c,v 1.47 2006/02/22 22:28:18 drochner Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_device.c,v 1.46 2005/12/11 12:25:29 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_device.c,v 1.47 2006/02/22 22:28:18 drochner Exp $");
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
@ -71,7 +71,7 @@ static void udv_init(void);
|
||||
static void udv_reference(struct uvm_object *);
|
||||
static void udv_detach(struct uvm_object *);
|
||||
static int udv_fault(struct uvm_faultinfo *, vaddr_t,
|
||||
struct vm_page **, int, int, vm_fault_t, vm_prot_t,
|
||||
struct vm_page **, int, int, vm_prot_t,
|
||||
int);
|
||||
|
||||
/*
|
||||
@ -350,7 +350,7 @@ again:
|
||||
|
||||
static int
|
||||
udv_fault(struct uvm_faultinfo *ufi, vaddr_t vaddr, struct vm_page **pps,
|
||||
int npages, int centeridx, vm_fault_t fault_type, vm_prot_t access_type,
|
||||
int npages, int centeridx, vm_prot_t access_type,
|
||||
int flags)
|
||||
{
|
||||
struct vm_map_entry *entry = ufi->entry;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_fault.c,v 1.108 2006/02/15 14:06:45 yamt Exp $ */
|
||||
/* $NetBSD: uvm_fault.c,v 1.109 2006/02/22 22:28:18 drochner Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -39,7 +39,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.108 2006/02/15 14:06:45 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.109 2006/02/22 22:28:18 drochner Exp $");
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
@ -1017,7 +1017,7 @@ ReFault:
|
||||
|
||||
/* locked: maps(read), amap (if there), uobj */
|
||||
error = uobj->pgops->pgo_fault(&ufi, startva, pages, npages,
|
||||
centeridx, fault_type, access_type, PGO_LOCKED|PGO_SYNCIO);
|
||||
centeridx, access_type, PGO_LOCKED|PGO_SYNCIO);
|
||||
|
||||
/* locked: nothing, pgo_fault has unlocked everything */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_pager.h,v 1.33 2006/02/11 12:45:07 yamt Exp $ */
|
||||
/* $NetBSD: uvm_pager.h,v 1.34 2006/02/22 22:28:18 drochner Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -137,7 +137,7 @@ struct uvm_pagerops {
|
||||
|
||||
/* special non-standard fault processing */
|
||||
int (*pgo_fault)(struct uvm_faultinfo *, vaddr_t, struct vm_page **,
|
||||
int, int, vm_fault_t, vm_prot_t, int);
|
||||
int, int, vm_prot_t, int);
|
||||
|
||||
/* get/read pages */
|
||||
int (*pgo_get)(struct uvm_object *, voff_t, struct vm_page **,
|
||||
|
Loading…
Reference in New Issue
Block a user