From owner-freebsd-fs Wed Apr 4 17:45:59 2001 Delivered-To: freebsd-fs@freebsd.org Received: from smtp10.phx.gblx.net (smtp10.phx.gblx.net [206.165.6.140]) by hub.freebsd.org (Postfix) with ESMTP id 6EECD37B43E for ; Wed, 4 Apr 2001 17:45:56 -0700 (PDT) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp10.phx.gblx.net (8.9.3/8.9.3) id RAA47332; Wed, 4 Apr 2001 17:45:55 -0700 Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp10.phx.gblx.net, id smtpdR06Pya; Wed Apr 4 17:45:48 2001 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id RAA03573; Wed, 4 Apr 2001 17:45:46 -0700 (MST) From: Terry Lambert Message-Id: <200104050045.RAA03573@usr08.primenet.com> Subject: Re: Reproducible kernel panics in ffs_valloc: dup_alloc To: ctsmhn@cts.com (Matthew H. North) Date: Thu, 5 Apr 2001 00:45:46 +0000 (GMT) Cc: bde@zeta.org.au (Bruce Evans), freebsd-fs@FreeBSD.ORG In-Reply-To: from "Matthew H. North" at Apr 04, 2001 08:54:47 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Thanks for the help. However, from my understanding of C, that patch does > nothing (except add an extra instruction or two to the kernel). It simply > adds an extra OR condition, that is always false, to an if statement. > > if CONDITION then > do something > > is exactly the same as > > if FALSE or CONDITION then > do something > > Perhaps I'm missing something. If so, please let me know. I think he meant "&&" instead of "||", which then dikes the code out. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message