summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-06-20 08:35:28 +0000
committerphk <phk@FreeBSD.org>2003-06-20 08:35:28 +0000
commit85ce27a4354707cfdace95318811c3d7b6271db6 (patch)
tree54b9431b5d3164ff26894e1b3a265fb266ebc884 /sys/vm
parenta5e8f5f0940389424da141c9f14d49be28815eef (diff)
downloadFreeBSD-src-85ce27a4354707cfdace95318811c3d7b6271db6.zip
FreeBSD-src-85ce27a4354707cfdace95318811c3d7b6271db6.tar.gz
Initialize b_saveaddr when we hand out pbufs
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_pager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c
index efdece2..f72c059 100644
--- a/sys/vm/vm_pager.c
+++ b/sys/vm/vm_pager.c
@@ -341,8 +341,9 @@ initpbuf(struct buf *bp)
bp->b_rcred = NOCRED;
bp->b_wcred = NOCRED;
bp->b_qindex = 0; /* On no queue (QUEUE_NONE) */
- bp->b_data = (caddr_t) (MAXPHYS * (bp - swbuf)) + swapbkva;
- bp->b_kvabase = bp->b_data;
+ bp->b_saveaddr = (caddr_t) (MAXPHYS * (bp - swbuf)) + swapbkva;
+ bp->b_data = bp->b_saveaddr;
+ bp->b_kvabase = bp->b_saveaddr;
bp->b_kvasize = MAXPHYS;
bp->b_xflags = 0;
bp->b_flags = 0;
OpenPOWER on IntegriCloud