summaryrefslogtreecommitdiffstats
path: root/sys/vm/vnode_pager.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-08-05 06:51:26 +0000
committerphk <phk@FreeBSD.org>2003-08-05 06:51:26 +0000
commita295f1212823ae7109002f71e1a29a313dfee5df (patch)
treefafbf3292a80e6b5bbc877283b671caae22604a6 /sys/vm/vnode_pager.c
parentc143c30d69d2ba57e098635e24c72d63089e7555 (diff)
downloadFreeBSD-src-a295f1212823ae7109002f71e1a29a313dfee5df.zip
FreeBSD-src-a295f1212823ae7109002f71e1a29a313dfee5df.tar.gz
Use sparse struct initializations for struct pagerops.
This makes grepping for which pagers implement which methods easier.
Diffstat (limited to 'sys/vm/vnode_pager.c')
-rw-r--r--sys/vm/vnode_pager.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index 69f4b42..58f4518 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -83,13 +83,12 @@ static void vnode_pager_putpages(vm_object_t, vm_page_t *, int, boolean_t, int *
static boolean_t vnode_pager_haspage(vm_object_t, vm_pindex_t, int *, int *);
struct pagerops vnodepagerops = {
- vnode_pager_init,
- vnode_pager_alloc,
- vnode_pager_dealloc,
- vnode_pager_getpages,
- vnode_pager_putpages,
- vnode_pager_haspage,
- NULL
+ .pgo_init = vnode_pager_init,
+ .pgo_alloc = vnode_pager_alloc,
+ .pgo_dealloc = vnode_pager_dealloc,
+ .pgo_getpages = vnode_pager_getpages,
+ .pgo_putpages = vnode_pager_putpages,
+ .pgo_haspage = vnode_pager_haspage,
};
int vnode_pbuf_freecnt;
OpenPOWER on IntegriCloud