summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pager.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-05-03 07:47:46 +0000
committerphk <phk@FreeBSD.org>2000-05-03 07:47:46 +0000
commitc7feb175725898650e653125977fd06936707337 (patch)
treed4b04879f7ed3a3547183a5315db12b5c955e719 /sys/vm/vm_pager.c
parent62efea1e92f2c29489a4040c037e38803f1a1c84 (diff)
downloadFreeBSD-src-c7feb175725898650e653125977fd06936707337.zip
FreeBSD-src-c7feb175725898650e653125977fd06936707337.tar.gz
Convert the vm_pager_strategy() interface to take a struct bio instead of
a struct buf. Don't try to examine B_ASYNC, it is a layering violation to do so. The only current user of this interface is vn(4) which, since it emulates a disk interface, operates on struct bio already.
Diffstat (limited to 'sys/vm/vm_pager.c')
-rw-r--r--sys/vm/vm_pager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c
index 84e6165..49c459a 100644
--- a/sys/vm/vm_pager.c
+++ b/sys/vm/vm_pager.c
@@ -262,14 +262,14 @@ vm_pager_deallocate(object)
*/
void
-vm_pager_strategy(vm_object_t object, struct buf *bp)
+vm_pager_strategy(vm_object_t object, struct bio *bp)
{
if (pagertab[object->type]->pgo_strategy) {
(*pagertab[object->type]->pgo_strategy)(object, bp);
} else {
- bp->b_ioflags |= BIO_ERROR;
- bp->b_error = ENXIO;
- bufdone(bp);
+ bp->bio_flags |= BIO_ERROR;
+ bp->bio_error = ENXIO;
+ biodone(bp);
}
}
OpenPOWER on IntegriCloud