diff options
author | phk <phk@FreeBSD.org> | 2000-05-03 07:47:46 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-05-03 07:47:46 +0000 |
commit | c7feb175725898650e653125977fd06936707337 (patch) | |
tree | d4b04879f7ed3a3547183a5315db12b5c955e719 /sys/vm/vm_pager.c | |
parent | 62efea1e92f2c29489a4040c037e38803f1a1c84 (diff) | |
download | FreeBSD-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.c | 8 |
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); } } |