From owner-cvs-all@FreeBSD.ORG Sat Oct 18 12:24:02 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64D4916A4B3 for ; Sat, 18 Oct 2003 12:24:02 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 8A9B643FD7 for ; Sat, 18 Oct 2003 12:24:00 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 47193 invoked by uid 1000); 18 Oct 2003 19:24:01 -0000 Date: Sat, 18 Oct 2003 12:24:01 -0700 (PDT) From: Nate Lawson To: Poul-Henning Kamp In-Reply-To: <20031018121152.V47115@root.org> Message-ID: <20031018122241.P47115@root.org> References: <20031018093315.22C3C16A554@hub.freebsd.org> <20031018121152.V47115@root.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern vfs_bio.c src/sys/fs/nwfs nwfs_vnops.c src/sys/fs/smbfs smbfs_vnops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2003 19:24:02 -0000 On Sat, 18 Oct 2003, Nate Lawson wrote: > On Sat, 18 Oct 2003, Poul-Henning Kamp wrote: > > Modified files: > > sys/kern vfs_bio.c > > sys/fs/nwfs nwfs_vnops.c > > sys/fs/smbfs smbfs_vnops.c > > Log: > > Convert some if(bla) panic("foo") to KASSERTS to improve grep-ability. > > > > Revision Changes Path > > 1.29 +1 -2 src/sys/fs/nwfs/nwfs_vnops.c > > 1.41 +1 -2 src/sys/fs/smbfs/smbfs_vnops.c > > 1.414 +2 -4 src/sys/kern/vfs_bio.c > > > > > > Index: src/sys/fs/nwfs/nwfs_vnops.c > > diff -u src/sys/fs/nwfs/nwfs_vnops.c:1.28 src/sys/fs/nwfs/nwfs_vnops.c:1.29 > > --- src/sys/fs/nwfs/nwfs_vnops.c:1.28 Sun Jun 15 11:52:58 2003 > > +++ src/sys/fs/nwfs/nwfs_vnops.c Sat Oct 18 02:32:39 2003 > > @@ -799,8 +799,7 @@ > > KASSERT(ap->a_vp == ap->a_bp->b_vp, ("%s(%p != %p)", > > __func__, ap->a_vp, ap->a_bp->b_vp)); > > NCPVNDEBUG("\n"); > > - if (bp->b_flags & B_PHYS) > > - panic("nwfs physio"); > > + KASSERT(!(bp->b_flags & B_PHYS), ("nwfs physio")); > > if (bp->b_flags & B_ASYNC) > > td = (struct thread *)0; > > else > > This removes sanity checks for the !INVARIANTS case (which all our > releases are). > > -Nate ... and removed the check completely a few commits down. Since it's part of a larger strategy, I assume that has already been evaluated. Forget the previous email. -Nate