summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-03-09 20:39:26 +0000
committerjulian <julian@FreeBSD.org>1998-03-09 20:39:26 +0000
commite8a4faf0452a393beff68511aeeee0d1a2926e58 (patch)
tree648be780e5f9289370c10e5dbb26621b14026826 /sys/geom
parentd285a03de7f6cc65a54adb9f5fbcbd7a6695565c (diff)
downloadFreeBSD-src-e8a4faf0452a393beff68511aeeee0d1a2926e58.zip
FreeBSD-src-e8a4faf0452a393beff68511aeeee0d1a2926e58.tar.gz
Slightly more correct initialisation of the new buf struct for soft-updates.
Submitted by: Chris Csanady <ccsanady@friley585.res.iastate.edu> Suggested by: Kirk McKusick
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom_ccd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index 839967a..683b2be 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -1,4 +1,4 @@
-/* $Id: ccd.c,v 1.30 1998/02/15 08:28:26 jkh Exp $ */
+/* $Id: ccd.c,v 1.31 1998/02/22 10:01:23 jkh Exp $ */
/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
@@ -893,6 +893,7 @@ ccdbuffer(cb, cs, bp, bn, addr, bcount)
cbp->cb_buf.b_blkno = cbn + cboff + CCD_OFFSET;
cbp->cb_buf.b_data = addr;
cbp->cb_buf.b_vp = ci->ci_vp;
+ LIST_INIT(&cbp->cb_buf.b_dep);
if (cs->sc_ileave == 0)
cbp->cb_buf.b_bcount = dbtob(ci->ci_size - cbn);
else
@@ -924,6 +925,7 @@ ccdbuffer(cb, cs, bp, bn, addr, bcount)
*cbp = *cb[0];
cbp->cb_buf.b_dev = ci2->ci_dev;
cbp->cb_buf.b_vp = ci2->ci_vp;
+ LIST_INIT(&cbp->cb_buf.b_dep);
cbp->cb_comp = ci2 - cs->sc_cinfo;
cb[1] = cbp;
/* link together the ccdbuf's and clear "mirror done" flag */
OpenPOWER on IntegriCloud