diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-12-02 20:42:11 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-12-02 20:42:11 +0000 |
commit | ff12b3d644e6d127f0688c8f14de2cfce5bb7521 (patch) | |
tree | 44cea802b9e7ba9132ade59d97978c29fc8a38dd /sys/uvm | |
parent | 0483165bf55c00a68534d186d0dd85347b8516fc (diff) |
Init the buffer dependency list.
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_swap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index 5c69f671dcf..b319aaa038a 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1363,6 +1363,7 @@ sw_reg_strategy(sdp, bp, bn) nbp->vb_buf.b_vnbufs.le_next = NOLIST; nbp->vb_buf.b_rcred = sdp->swd_cred; nbp->vb_buf.b_wcred = sdp->swd_cred; + LIST_INIT(&nbp->vb_buf.b_dep); /* * set b_dirtyoff/end and b_validoff/end. this is @@ -1805,6 +1806,7 @@ uvm_swap_io(pps, startslot, npages, flags) bp->b_vnbufs.le_next = NOLIST; bp->b_data = (caddr_t)kva; bp->b_blkno = startblk; + LIST_INIT(&bp->b_dep); s = splbio(); VHOLD(swapdev_vp); bp->b_vp = swapdev_vp; |