summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
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/kern/vfs_bio.c
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/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 88e0956..43acafb 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -11,7 +11,7 @@
* 2. Absolutely no warranty of function or purpose is made by the author
* John S. Dyson.
*
- * $Id: vfs_bio.c,v 1.212 1999/06/15 23:37:23 mckusick Exp $
+ * $Id: vfs_bio.c,v 1.213 1999/06/16 03:19:04 tegge Exp $
*/
/*
@@ -699,7 +699,7 @@ void
bawrite(struct buf * bp)
{
bp->b_flags |= B_ASYNC;
- (void) VOP_BWRITE(bp);
+ (void) VOP_BWRITE(bp->b_vp, bp);
}
/*
@@ -714,7 +714,7 @@ int
bowrite(struct buf * bp)
{
bp->b_flags |= B_ORDERED | B_ASYNC;
- return (VOP_BWRITE(bp));
+ return (VOP_BWRITE(bp->b_vp, bp));
}
/*
@@ -1155,7 +1155,7 @@ vfs_bio_awrite(struct buf * bp)
* XXX returns b_bufsize instead of b_bcount for nwritten?
*/
nwritten = bp->b_bufsize;
- (void) VOP_BWRITE(bp);
+ (void) VOP_BWRITE(bp->b_vp, bp);
return nwritten;
}
@@ -1880,7 +1880,7 @@ loop:
) {
if (bp->b_flags & B_DELWRI) {
bp->b_flags |= B_NOCACHE;
- VOP_BWRITE(bp);
+ VOP_BWRITE(bp->b_vp, bp);
} else {
if ((bp->b_flags & B_VMIO) &&
(LIST_FIRST(&bp->b_dep) == NULL)) {
@@ -1888,7 +1888,7 @@ loop:
brelse(bp);
} else {
bp->b_flags |= B_NOCACHE;
- VOP_BWRITE(bp);
+ VOP_BWRITE(bp->b_vp, bp);
}
}
goto loop;
@@ -1925,7 +1925,7 @@ loop:
*/
if ((bp->b_flags & (B_CACHE|B_DELWRI)) == B_DELWRI) {
- VOP_BWRITE(bp);
+ VOP_BWRITE(bp->b_vp, bp);
goto loop;
}
OpenPOWER on IntegriCloud