freebsd-dev/sys/ufs
Poul-Henning Kamp 3758b280f2 We got a couple of "map mismatch" panics from the following
code.  According to the crash dump, bpref is set to 445
and cgp->cg_nclusterblks is 444.  Hence in the for loop,
the test fails immediately but the following failure check
(got == cgp->cg_nclusterblks) doesn't trigger because got >
cgp->cg_nclusterblks.  This wreaks havoc in the code after that.

Fix: Move one source bit to the left  :-)

Noticed by:	Mike Hibler <mike@fast.cs.utah.edu>
Submitted by:	Kirk McKusick <mckusick@McKusick.COM>
1997-08-04 07:30:43 +00:00
..
ffs We got a couple of "map mismatch" panics from the following 1997-08-04 07:30:43 +00:00
lfs Removed unused #includes. 1997-08-02 14:33:27 +00:00
mfs Removed unused #includes. 1997-08-02 14:33:27 +00:00
ufs Removed unused #includes. 1997-08-02 14:33:27 +00:00