diff options
author | phk <phk@FreeBSD.org> | 2000-05-01 13:36:25 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-05-01 13:36:25 +0000 |
commit | 8f6a76b4dd073885aba26f3bee2a0bf76a3c21c8 (patch) | |
tree | 2c449be5174c7adc5d7066a40e57a9546c7b6105 /sys/kern/vfs_bio.c | |
parent | 1adeb7ffb16ca15e57e103f0b216470ee1d82d99 (diff) | |
download | FreeBSD-src-8f6a76b4dd073885aba26f3bee2a0bf76a3c21c8.zip FreeBSD-src-8f6a76b4dd073885aba26f3bee2a0bf76a3c21c8.tar.gz |
Give struct bio it's own call back mechanism.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 18 |
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; |