diff options
author | phk <phk@FreeBSD.org> | 2001-04-17 08:56:39 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-04-17 08:56:39 +0000 |
commit | 378e561228360a3c0ad7f34be404abec95457c90 (patch) | |
tree | c2dc888d5361454aab94e341449bda307b726c8b /sys/kern/vfs_default.c | |
parent | 922e3083ccc90b69264f72c32d897dfa6c0c2495 (diff) | |
download | FreeBSD-src-378e561228360a3c0ad7f34be404abec95457c90.zip FreeBSD-src-378e561228360a3c0ad7f34be404abec95457c90.tar.gz |
This patch removes the VOP_BWRITE() vector.
VOP_BWRITE() was a hack which made it possible for NFS client
side to use struct buf with non-bio backing.
This patch takes a more general approach and adds a bp->b_op
vector where more methods can be added.
The success of this patch depends on bp->b_op being initialized
all relevant places for some value of "relevant" which is not
easy to determine. For now the buffers have grown a b_magic
element which will make such issues a tiny bit easier to debug.
Diffstat (limited to 'sys/kern/vfs_default.c')
-rw-r--r-- | sys/kern/vfs_default.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index d0ed3bb..cdbf668 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -80,7 +80,6 @@ vop_t **default_vnodeop_p; static struct vnodeopv_entry_desc default_vnodeop_entries[] = { { &vop_default_desc, (vop_t *) vop_eopnotsupp }, { &vop_advlock_desc, (vop_t *) vop_einval }, - { &vop_bwrite_desc, (vop_t *) vop_stdbwrite }, { &vop_close_desc, (vop_t *) vop_null }, { &vop_createvobject_desc, (vop_t *) vop_stdcreatevobject }, { &vop_destroyvobject_desc, (vop_t *) vop_stddestroyvobject }, @@ -333,13 +332,6 @@ vop_stdpoll(ap) return (vn_pollrecord(ap->a_vp, ap->a_p, ap->a_events)); } -int -vop_stdbwrite(ap) - struct vop_bwrite_args *ap; -{ - return (bwrite(ap->a_bp)); -} - /* * Stubs to use when there is no locking to be done on the underlying object. * A minimal shared lock is necessary to ensure that the underlying object |