diff options
author | phk <phk@FreeBSD.org> | 2003-08-05 06:51:26 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-08-05 06:51:26 +0000 |
commit | a295f1212823ae7109002f71e1a29a313dfee5df (patch) | |
tree | fafbf3292a80e6b5bbc877283b671caae22604a6 /sys/vm/vnode_pager.c | |
parent | c143c30d69d2ba57e098635e24c72d63089e7555 (diff) | |
download | FreeBSD-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.c | 13 |
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; |