summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Egge <tegge@FreeBSD.org>2001-10-15 23:02:54 +0000
committerTor Egge <tegge@FreeBSD.org>2001-10-15 23:02:54 +0000
commitd6844b6bf6aef03adc7924c7b07d6f12d6bc4baa (patch)
tree35f2186849204c9c2fd6d7b0888f4a282ec46b19
parenteb9d1d27167aefff8c8995dfe266d05a6ddf0124 (diff)
Notes
-rw-r--r--sys/vm/swap_pager.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 711a00ff35d6..b8880efcea74 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -888,6 +888,7 @@ swap_pager_strategy(vm_object_t object, struct bio *bp)
bp->bio_error = 0;
bp->bio_flags &= ~BIO_ERROR;
bp->bio_resid = bp->bio_bcount;
+ *(u_int *) &bp->bio_driver1 = 0;
start = bp->bio_pblkno;
count = howmany(bp->bio_bcount, PAGE_SIZE);
@@ -2029,7 +2030,7 @@ vm_pager_chain_iodone(struct buf *nbp)
u_int *count;
bp = nbp->b_caller1;
- count = (u_int *)&(bp->bio_caller1);
+ count = (u_int *)&(bp->bio_driver1);
if (bp != NULL) {
if (nbp->b_ioflags & BIO_ERROR) {
bp->bio_flags |= BIO_ERROR;
@@ -2068,7 +2069,7 @@ getchainbuf(struct bio *bp, struct vnode *vp, int flags)
GIANT_REQUIRED;
nbp = getpbuf(NULL);
- count = (u_int *)&(bp->bio_caller1);
+ count = (u_int *)&(bp->bio_driver1);
nbp->b_caller1 = bp;
++(*count);
@@ -2110,7 +2111,7 @@ waitchainbuf(struct bio *bp, int limit, int done)
u_int *count;
GIANT_REQUIRED;
- count = (u_int *)&(bp->bio_caller1);
+ count = (u_int *)&(bp->bio_driver1);
s = splbio();
while (*count > limit) {
bp->bio_flags |= BIO_FLAG1;