diff options
Diffstat (limited to 'sys/gnu/fs')
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_alloc.c | 8 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_balloc.c | 2 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_inode.c | 4 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_lookup.c | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_alloc.c b/sys/gnu/fs/ext2fs/ext2_alloc.c index 8acfda8..190a472 100644 --- a/sys/gnu/fs/ext2fs/ext2_alloc.c +++ b/sys/gnu/fs/ext2fs/ext2_alloc.c @@ -102,7 +102,7 @@ ext2_alloc(ip, lbn, bpref, size, cred, bnp) *bnp = 0; fs = ip->i_e2fs; -#if DIAGNOSTIC +#ifdef DIAGNOSTIC if ((u_int)size > fs->s_blocksize || blkoff(fs, size) != 0) { vn_printf(ip->i_devvp, "bsize = %lu, size = %d, fs = %s\n", fs->s_blocksize, size, fs->fs_fsmnt); @@ -225,7 +225,7 @@ return ENOSPC; len = buflist->bs_nchildren; start_lbn = buflist->bs_children[0]->b_lblkno; end_lbn = start_lbn + len - 1; -#if DIAGNOSTIC +#ifdef DIAGNOSTIC for (i = 1; i < len; i++) if (buflist->bs_children[i]->b_lblkno != start_lbn + i) panic("ext2_reallocblks: non-cluster"); @@ -266,7 +266,7 @@ return ENOSPC; if (end_lvl == 0 || (idp = &end_ap[end_lvl - 1])->in_off + 1 >= len) { ssize = len; } else { -#if DIAGNOSTIC +#ifdef DIAGNOSTIC if (start_ap[start_lvl-1].in_lbn == idp->in_lbn) panic("ext2_reallocblk: start == end"); #endif @@ -292,7 +292,7 @@ return ENOSPC; for (bap = &sbap[soff], i = 0; i < len; i++, blkno += fs->s_frags_per_block) { if (i == ssize) bap = ebap; -#if DIAGNOSTIC +#ifdef DIAGNOSTIC if (buflist->bs_children[i]->b_blkno != fsbtodb(fs, *bap)) panic("ext2_reallocblks: alloc mismatch"); #endif diff --git a/sys/gnu/fs/ext2fs/ext2_balloc.c b/sys/gnu/fs/ext2fs/ext2_balloc.c index f15a960..e46414c 100644 --- a/sys/gnu/fs/ext2fs/ext2_balloc.c +++ b/sys/gnu/fs/ext2fs/ext2_balloc.c @@ -159,7 +159,7 @@ ext2_debug("ext2_balloc called (%d, %d, %d)\n", pref = 0; if ((error = ext2_getlbns(vp, bn, indirs, &num)) != 0) return(error); -#if DIAGNOSTIC +#ifdef DIAGNOSTIC if (num < 1) panic ("ext2_balloc: ext2_getlbns returned indirect block"); #endif diff --git a/sys/gnu/fs/ext2fs/ext2_inode.c b/sys/gnu/fs/ext2fs/ext2_inode.c index 8f1b21e..9f84fd4 100644 --- a/sys/gnu/fs/ext2fs/ext2_inode.c +++ b/sys/gnu/fs/ext2fs/ext2_inode.c @@ -138,7 +138,7 @@ printf("ext2_truncate called %d to %d\n", VTOI(ovp)->i_number, length); oip = VTOI(ovp); if (ovp->v_type == VLNK && oip->i_size < ovp->v_mount->mnt_maxsymlinklen) { -#if DIAGNOSTIC +#ifdef DIAGNOSTIC if (length != 0) panic("ext2_truncate: partial truncate of symlink"); #endif @@ -318,7 +318,7 @@ printf("ext2_truncate called %d to %d\n", VTOI(ovp)->i_number, length); } } done: -#if DIAGNOSTIC +#ifdef DIAGNOSTIC for (level = SINGLE; level <= TRIPLE; level++) if (newblks[NDADDR + level] != oip->i_ib[level]) panic("itrunc1"); diff --git a/sys/gnu/fs/ext2fs/ext2_lookup.c b/sys/gnu/fs/ext2fs/ext2_lookup.c index d057e2a..f2ac679 100644 --- a/sys/gnu/fs/ext2fs/ext2_lookup.c +++ b/sys/gnu/fs/ext2fs/ext2_lookup.c @@ -765,7 +765,7 @@ ext2_direnter(ip, dvp, cnp) int DIRBLKSIZ = ip->i_e2fs->s_blocksize; -#if DIAGNOSTIC +#ifdef DIAGNOSTIC if ((cnp->cn_flags & SAVENAME) == 0) panic("direnter: missing name"); #endif |