use designated initiaizers for uvm_pagerops.
This commit is contained in:
parent
82f3754f04
commit
062f8e82a2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_aobj.c,v 1.93 2007/08/05 10:19:23 pooka Exp $ */
|
||||
/* $NetBSD: uvm_aobj.c,v 1.94 2007/12/01 10:18:21 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Chuck Silvers, Charles D. Cranor and
|
||||
|
@ -43,7 +43,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.93 2007/08/05 10:19:23 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.94 2007/12/01 10:18:21 yamt Exp $");
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
|
@ -199,12 +199,10 @@ static void uao_dropswap_range1(struct uvm_aobj *, voff_t, voff_t);
|
|||
*/
|
||||
|
||||
struct uvm_pagerops aobj_pager = {
|
||||
NULL, /* init */
|
||||
uao_reference, /* reference */
|
||||
uao_detach, /* detach */
|
||||
NULL, /* fault */
|
||||
uao_get, /* get */
|
||||
uao_put, /* flush */
|
||||
.pgo_reference = uao_reference,
|
||||
.pgo_detach = uao_detach,
|
||||
.pgo_get = uao_get,
|
||||
.pgo_put = uao_put,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_loan.c,v 1.67 2007/10/11 19:53:43 ad Exp $ */
|
||||
/* $NetBSD: uvm_loan.c,v 1.68 2007/12/01 10:18:21 yamt Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -39,7 +39,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_loan.c,v 1.67 2007/10/11 19:53:43 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_loan.c,v 1.68 2007/12/01 10:18:21 yamt Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -1078,12 +1078,7 @@ ulz_put(struct uvm_object *uobj, voff_t start, voff_t stop, int flags)
|
|||
}
|
||||
|
||||
static struct uvm_pagerops ulz_pager = {
|
||||
NULL, /* init */
|
||||
NULL, /* reference */
|
||||
NULL, /* detach */
|
||||
NULL, /* fault */
|
||||
NULL, /* get */
|
||||
ulz_put, /* put */
|
||||
.pgo_put = ulz_put,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_vnode.c,v 1.87 2007/10/11 19:53:43 ad Exp $ */
|
||||
/* $NetBSD: uvm_vnode.c,v 1.88 2007/12/01 10:18:21 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Charles D. Cranor and Washington University.
|
||||
|
@ -50,7 +50,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_vnode.c,v 1.87 2007/10/11 19:53:43 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_vnode.c,v 1.88 2007/12/01 10:18:21 yamt Exp $");
|
||||
|
||||
#include "fs_nfs.h"
|
||||
#include "opt_uvmhist.h"
|
||||
|
@ -92,12 +92,10 @@ static int uvn_findpage(struct uvm_object *, voff_t, struct vm_page **,
|
|||
*/
|
||||
|
||||
struct uvm_pagerops uvm_vnodeops = {
|
||||
NULL,
|
||||
uvn_reference,
|
||||
uvn_detach,
|
||||
NULL,
|
||||
uvn_get,
|
||||
uvn_put,
|
||||
.pgo_reference = uvn_reference,
|
||||
.pgo_detach = uvn_detach,
|
||||
.pgo_get = uvn_get,
|
||||
.pgo_put = uvn_put,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue