Date: Tue, 3 Nov 2009 01:09:23 +0000 (UTC) From: Kip Macy <kmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r198836 - user/kmacy/releng_8_fcs_buf/sys/cddl/contrib/opensolaris/uts/common/fs/zfs Message-ID: <200911030109.nA319N8R075405@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kmacy Date: Tue Nov 3 01:09:23 2009 New Revision: 198836 URL: http://svn.freebsd.org/changeset/base/198836 Log: eliminate uninitialized variable Modified: user/kmacy/releng_8_fcs_buf/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Modified: user/kmacy/releng_8_fcs_buf/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c ============================================================================== --- user/kmacy/releng_8_fcs_buf/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Tue Nov 3 01:03:58 2009 (r198835) +++ user/kmacy/releng_8_fcs_buf/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Tue Nov 3 01:09:23 2009 (r198836) @@ -1367,7 +1367,6 @@ arc_brelse(arc_buf_t *buf, void *data, s static void arc_binval(arc_buf_t *buf, off_t blkno, struct vnode *vp, size_t size, struct buf *newbp) { - arc_buf_hdr_t *hdr; arc_buf_t *tbuf; int released = 0, gotvp = 0; struct buf *bp = NULL; @@ -1392,7 +1391,7 @@ arc_binval(arc_buf_t *buf, off_t blkno, bo = newbp->b_bufobj = &vp->v_bufobj; newbp->b_lblkno = blkno; newbp->b_blkno = blkno; - newbp->b_offset = hdr->b_birth; + newbp->b_offset = buf->b_hdr->b_birth; newbp->b_flags &= ~B_INVAL; newbp->b_flags |= B_CACHE; @@ -1417,7 +1416,7 @@ arc_binval(arc_buf_t *buf, off_t blkno, } if (!gotvp) bgetvp(vp, newbp); - BO_UNLOCK(&vp->v_bufobj); + BO_UNLOCK(bo); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911030109.nA319N8R075405>