summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 0338cc5..025d030 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -2603,8 +2603,18 @@ bufwait(register struct buf * bp)
}
}
+ /*
+ * Call back function from struct bio back up to struct buf.
+ * The corresponding initialization lives in sys/conf.h:DEV_STRATEGY().
+ */
+void
+bufdonebio(struct bio *bp)
+{
+ bufdone(bp->bio_caller2);
+}
+
/*
- * biodone:
+ * bufdone:
*
* Finish I/O on a buffer, optionally calling a completion function.
* This is usually called from an interrupt so process blocking is
@@ -2623,12 +2633,6 @@ bufwait(register struct buf * bp)
* in the biodone routine.
*/
void
-biodone(struct bio * bip)
-{
- bufdone((struct buf *)bip);
-}
-
-void
bufdone(struct buf *bp)
{
int s;
OpenPOWER on IntegriCloud