diff options
author | phk <phk@FreeBSD.org> | 2001-05-01 08:34:45 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-05-01 08:34:45 +0000 |
commit | 5948c9ed5b3c16fe0bc873bffb152989a3abf100 (patch) | |
tree | 01c953fe3c0f1e5488cf57f057284ac4c071f8d1 /sys/fs/coda | |
parent | bcca5847d5e7a197302d7689cd358f5ce6316d0a (diff) | |
download | FreeBSD-src-5948c9ed5b3c16fe0bc873bffb152989a3abf100.zip FreeBSD-src-5948c9ed5b3c16fe0bc873bffb152989a3abf100.tar.gz |
Implement vop_std{get|put}pages() and add them to the default vop[].
Un-copy&paste all the VOP_{GET|PUT}PAGES() functions which do nothing but
the default.
Diffstat (limited to 'sys/fs/coda')
-rw-r--r-- | sys/fs/coda/coda_fbsd.c | 16 | ||||
-rw-r--r-- | sys/fs/coda/coda_vnops.c | 2 | ||||
-rw-r--r-- | sys/fs/coda/coda_vnops.h | 1 |
3 files changed, 2 insertions, 17 deletions
diff --git a/sys/fs/coda/coda_fbsd.c b/sys/fs/coda/coda_fbsd.c index c92b482..629ead4 100644 --- a/sys/fs/coda/coda_fbsd.c +++ b/sys/fs/coda/coda_fbsd.c @@ -114,10 +114,7 @@ coda_fbsd_getpages(v) int ret = 0; #if 1 - /* ??? a_offset */ - ret = vnode_pager_generic_getpages(ap->a_vp, ap->a_m, ap->a_count, - ap->a_reqpage); - return ret; + return vop_stdgetpages(ap); #else { struct vnode *vp = ap->a_vp; @@ -176,14 +173,3 @@ printf("error = %d\n", error); } #endif } - -int -coda_fbsd_putpages(v) - void *v; -{ - struct vop_putpages_args *ap = v; - - /*??? a_offset */ - return vnode_pager_generic_putpages(ap->a_vp, ap->a_m, ap->a_count, - ap->a_sync, ap->a_rtvals); -} diff --git a/sys/fs/coda/coda_vnops.c b/sys/fs/coda/coda_vnops.c index 1444fb2..5f93984 100644 --- a/sys/fs/coda/coda_vnops.c +++ b/sys/fs/coda/coda_vnops.c @@ -143,7 +143,7 @@ struct vnodeopv_entry_desc coda_vnodeop_entries[] = { { &vop_lease_desc, coda_vop_nop }, /* lease */ { &vop_poll_desc, (vop_t *) vop_stdpoll }, { &vop_getpages_desc, coda_fbsd_getpages }, /* pager intf.*/ - { &vop_putpages_desc, coda_fbsd_putpages }, /* pager intf.*/ + { &vop_putpages_desc, vop_stdputpages }, /* pager intf.*/ #if 0 diff --git a/sys/fs/coda/coda_vnops.h b/sys/fs/coda/coda_vnops.h index 0fb5985..9fcd978 100644 --- a/sys/fs/coda/coda_vnops.h +++ b/sys/fs/coda/coda_vnops.h @@ -78,7 +78,6 @@ int coda_islocked __P((void *)); int coda_vop_error __P((void *)); int coda_vop_nop __P((void *)); int coda_fbsd_getpages __P((void *)); -int coda_fbsd_putpages __P((void *)); int (**coda_vnodeop_p)(void *); |