diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-10-18 14:10:28 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-10-18 14:10:28 +0000 |
commit | 2c18019f141eab7862508c732bed94aa42238813 (patch) | |
tree | 55e40771eeea4b5804dfc89816d64f51ad7fe0ec /sys/vm/swap_pager.c | |
parent | cc81271eaac2ee2ce48033902dacc7747b787c5e (diff) | |
download | src-2c18019f141eab7862508c732bed94aa42238813.tar.gz src-2c18019f141eab7862508c732bed94aa42238813.zip |
DuH!
bp->b_iooffset (the spot on the disk), not bp->b_offset (the offset in
the file)
Notes
Notes:
svn path=/head/; revision=121205
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r-- | sys/vm/swap_pager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index c26e2eba10bf..4013dfdd942b 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; } |