diff options
author | sheldonh <sheldonh@FreeBSD.org> | 1999-08-24 08:39:41 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 1999-08-24 08:39:41 +0000 |
commit | 190863bb6dc9192f49bec0625025119bcef3bf89 (patch) | |
tree | f68903de92b3f934e64dbbf041702e366231c794 /sys/ufs | |
parent | d2dd0951b98dbdd829fb5aa94ba7db8590df8b91 (diff) | |
download | FreeBSD-src-190863bb6dc9192f49bec0625025119bcef3bf89.zip FreeBSD-src-190863bb6dc9192f49bec0625025119bcef3bf89.tar.gz |
Fix bug introduced in rev 1.28, which causes kernel build to break for
the case where DEBUG is defined but not DIAGNOSTIC. ffs_checkblk is
declared conditionally on DIAGNOSTIC, not DEBUG.
PR: 13314
Reviewed by: bde
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_alloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index ee3a2a5..8e20512 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_alloc.c 8.18 (Berkeley) 5/26/95 - * $Id: ffs_alloc.c,v 1.58 1999/05/12 22:32:07 peter Exp $ + * $Id: ffs_alloc.c,v 1.59 1999/08/23 20:35:19 bde Exp $ */ #include "opt_quota.h" @@ -526,10 +526,12 @@ ffs_reallocblks(ap) dbtofsb(fs, buflist->bs_children[i]->b_blkno), fs->fs_bsize); buflist->bs_children[i]->b_blkno = fsbtodb(fs, blkno); -#ifdef DEBUG +#ifdef DIAGNOSTIC if (!ffs_checkblk(ip, dbtofsb(fs, buflist->bs_children[i]->b_blkno), fs->fs_bsize)) panic("ffs_reallocblks: unallocated block 3"); +#endif +#ifdef DEBUG if (prtrealloc) printf(" %d,", blkno); #endif |