diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2013-06-12 15:24:48 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2013-06-12 15:24:48 +0000 |
commit | 77b193c249bc24bf860d9dd6b264d4bfe456ac0e (patch) | |
tree | d8d8828b3ecb08de96c03f5fd63df613e7247e2b /sys/fs/ext2fs/ext2_balloc.c | |
parent | a987ae075f7268d924a680363852fd4c97ea61cf (diff) | |
download | src-77b193c249bc24bf860d9dd6b264d4bfe456ac0e.tar.gz src-77b193c249bc24bf860d9dd6b264d4bfe456ac0e.zip |
Turn DIAGNOSTICs to INVARIANTS in ext2fs.
This is done to be consistent with what other filesystems and
particularly ffs already does (see r173464).
MFC after: 5 days
Notes
Notes:
svn path=/head/; revision=251658
Diffstat (limited to 'sys/fs/ext2fs/ext2_balloc.c')
-rw-r--r-- | sys/fs/ext2fs/ext2_balloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_balloc.c b/sys/fs/ext2fs/ext2_balloc.c index bacc1fa2b12c..ce73840c407c 100644 --- a/sys/fs/ext2fs/ext2_balloc.c +++ b/sys/fs/ext2fs/ext2_balloc.c @@ -152,7 +152,7 @@ ext2_balloc(struct inode *ip, int32_t lbn, int size, struct ucred *cred, pref = 0; if ((error = ext2_getlbns(vp, lbn, indirs, &num)) != 0) return (error); -#ifdef DIAGNOSTIC +#ifdef INVARIANTS if (num < 1) panic ("ext2_balloc: ext2_getlbns returned indirect block"); #endif |