From e8a4faf0452a393beff68511aeeee0d1a2926e58 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 9 Mar 1998 20:39:26 +0000 Subject: [PATCH] Slightly more correct initialisation of the new buf struct for soft-updates. Submitted by: Chris Csanady Suggested by: Kirk McKusick --- sys/dev/ccd/ccd.c | 4 +++- sys/geom/geom_ccd.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index 839967ab1642..683b2bec454d 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/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 */ diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index 839967ab1642..683b2bec454d 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 */