summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-10-18 14:10:28 +0000
committerphk <phk@FreeBSD.org>2003-10-18 14:10:28 +0000
commit4c2cb3f397c38a3130cc662b11c357e626595ce7 (patch)
tree55e40771eeea4b5804dfc89816d64f51ad7fe0ec /sys/vm
parentd004fc1e31ce0293b51841c13a14ebf6ecc9e6ec (diff)
downloadFreeBSD-src-4c2cb3f397c38a3130cc662b11c357e626595ce7.zip
FreeBSD-src-4c2cb3f397c38a3130cc662b11c357e626595ce7.tar.gz
DuH!
bp->b_iooffset (the spot on the disk), not bp->b_offset (the offset in the file)
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/swap_pager.c2
-rw-r--r--sys/vm/vnode_pager.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index c26e2eb..4013dfd 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -2541,7 +2541,7 @@ swapdev_strategy(struct buf *bp, struct swdevt *sp)
}
bp->b_vp = vp2;
splx(s);
- bp->b_offset = dbtob(bp->b_blkno);
+ bp->b_iooffset = dbtob(bp->b_blkno);
VOP_STRATEGY(vp2, bp);
return;
}
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index 71b3ef2..5411a90 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -478,7 +478,7 @@ vnode_pager_input_smlfs(object, m)
runningbufspace += bp->b_runningbufspace;
/* do the input */
- bp->b_offset = dbtob(bp->b_blkno);
+ bp->b_iooffset = dbtob(bp->b_blkno);
VOP_SPECSTRATEGY(bp->b_vp, bp);
/* we definitely need to be at splvm here */
@@ -817,7 +817,7 @@ vnode_pager_generic_getpages(vp, m, bytecount, reqpage)
cnt.v_vnodepgsin += count;
/* do the input */
- bp->b_offset = dbtob(bp->b_blkno);
+ bp->b_iooffset = dbtob(bp->b_blkno);
if (dp->v_type == VCHR)
VOP_SPECSTRATEGY(bp->b_vp, bp);
else
OpenPOWER on IntegriCloud