summaryrefslogtreecommitdiffstats
path: root/sys/tools
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>1999-06-16 23:27:55 +0000
committermckusick <mckusick@FreeBSD.org>1999-06-16 23:27:55 +0000
commit88e39a63db386a8e7939538fd1b350cbe663486b (patch)
tree002e7a32883a2178dd2164b02c296d429dee5cfd /sys/tools
parent97a0215ac1c4c057e39723365f18d612e9304581 (diff)
downloadFreeBSD-src-88e39a63db386a8e7939538fd1b350cbe663486b.zip
FreeBSD-src-88e39a63db386a8e7939538fd1b350cbe663486b.tar.gz
Add a vnode argument to VOP_BWRITE to get rid of the last vnode
operator special case. Delete special case code from vnode_if.sh, vnode_if.src, umap_vnops.c, and null_vnops.c.
Diffstat (limited to 'sys/tools')
-rw-r--r--sys/tools/vnode_if.awk47
1 files changed, 1 insertions, 46 deletions
diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk
index 87517e6..07e0e91 100644
--- a/sys/tools/vnode_if.awk
+++ b/sys/tools/vnode_if.awk
@@ -32,7 +32,7 @@
# SUCH DAMAGE.
#
# @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93
-# $Id: vnode_if.sh,v 1.16 1998/11/10 09:04:09 peter Exp $
+# $Id: vnode_if.sh,v 1.17 1999/02/28 11:30:00 bde Exp $
#
# Script to produce VFS front-end sugar.
@@ -350,48 +350,3 @@ $AWK 'function kill_surrounding_ws (s) {
printf "\n";
}' < $SRC >> $CFILE
-
-# THINGS THAT DON'T WORK RIGHT YET.
-#
-# vop_bwrite doesn't take any vnodes as arguments. This means that it
-# can't function successfully through a bypass routine.
-#
-# To get around this problem for now we handle it as a special case.
-
-cat << END_OF_SPECIAL_CASES >> $HEADER
-#include <sys/buf.h>
-
-struct vop_bwrite_args {
- struct vnodeop_desc *a_desc;
- struct buf *a_bp;
-};
-extern struct vnodeop_desc vop_bwrite_desc;
-static __inline int VOP_BWRITE __P((
- struct buf *bp));
-static __inline int VOP_BWRITE(bp)
- struct buf *bp;
-{
- struct vop_bwrite_args a;
-
- a.a_desc = VDESC(vop_bwrite);
- a.a_bp = bp;
- return (VCALL((bp)->b_vp, VOFFSET(vop_bwrite), &a));
-}
-END_OF_SPECIAL_CASES
-
-cat << END_OF_SPECIAL_CASES >> $CFILE
-static int vop_bwrite_vp_offsets[] = {
- VDESC_NO_OFFSET
-};
-struct vnodeop_desc vop_bwrite_desc = {
- 0,
- "vop_bwrite",
- 0,
- vop_bwrite_vp_offsets,
- VDESC_NO_OFFSET,
- VDESC_NO_OFFSET,
- VDESC_NO_OFFSET,
- VDESC_NO_OFFSET,
- NULL,
-};
-END_OF_SPECIAL_CASES
OpenPOWER on IntegriCloud