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/nwfs/nwfs_io.c | |
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/nwfs/nwfs_io.c')
-rw-r--r-- | sys/nwfs/nwfs_io.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/nwfs/nwfs_io.c b/sys/nwfs/nwfs_io.c index f86460bf62..4b105c6 100644 --- a/sys/nwfs/nwfs_io.c +++ b/sys/nwfs/nwfs_io.c @@ -393,8 +393,7 @@ nwfs_getpages(ap) } */ *ap; { #ifndef NWFS_RWCACHE - return vnode_pager_generic_getpages(ap->a_vp, ap->a_m, ap->a_count, - ap->a_reqpage); + return vop_stdgetpages(ap);(ap->a_vp, ap->a_m, ap->a_count, #else int i, error, nextoff, size, toff, npages, count; struct uio uio; @@ -521,8 +520,7 @@ nwfs_putpages(ap) p = curproc; /* XXX */ cred = p->p_ucred; /* XXX */ VOP_OPEN(vp, FWRITE, cred, p); - error = vnode_pager_generic_putpages(ap->a_vp, ap->a_m, ap->a_count, - ap->a_sync, ap->a_rtvals); + error = vop_stdputpages(ap); VOP_CLOSE(vp, FWRITE, cred, p); return error; #else |