diff options
author | pfg <pfg@FreeBSD.org> | 2013-06-12 15:24:48 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-06-12 15:24:48 +0000 |
commit | e9fce1a99bb1f52b532c647c3040010a94d812b5 (patch) | |
tree | d8d8828b3ecb08de96c03f5fd63df613e7247e2b /sys/fs/ext2fs/ext2_lookup.c | |
parent | 29fa0ac530bb04c4601ecd54027ea264399741c2 (diff) | |
download | FreeBSD-src-e9fce1a99bb1f52b532c647c3040010a94d812b5.zip FreeBSD-src-e9fce1a99bb1f52b532c647c3040010a94d812b5.tar.gz |
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
Diffstat (limited to 'sys/fs/ext2fs/ext2_lookup.c')
-rw-r--r-- | sys/fs/ext2fs/ext2_lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/ext2_lookup.c b/sys/fs/ext2fs/ext2_lookup.c index b9a2f80..75b11a8 100644 --- a/sys/fs/ext2fs/ext2_lookup.c +++ b/sys/fs/ext2fs/ext2_lookup.c @@ -62,7 +62,7 @@ #include <fs/ext2fs/ext2_dir.h> #include <fs/ext2fs/ext2_extern.h> -#ifdef DIAGNOSTIC +#ifdef INVARIANTS static int dirchk = 1; #else static int dirchk = 0; @@ -790,7 +790,7 @@ ext2_direnter(struct inode *ip, struct vnode *dvp, struct componentname *cnp) int DIRBLKSIZ = ip->i_e2fs->e2fs_bsize; -#ifdef DIAGNOSTIC +#ifdef INVARIANTS if ((cnp->cn_flags & SAVENAME) == 0) panic("ext2_direnter: missing name"); #endif |