diff options
author | obrien <obrien@FreeBSD.org> | 2007-11-08 17:21:51 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2007-11-08 17:21:51 +0000 |
commit | 1ae16b4e6474257b54423ee06b559bf4e1cde2a2 (patch) | |
tree | e8db5a63e71fde36d55c85b7aaa6368aea5a4a89 /sys/ufs/ffs/ffs_vnops.c | |
parent | 2543bc560678aa66522103e533df6fea857502d1 (diff) | |
download | FreeBSD-src-1ae16b4e6474257b54423ee06b559bf4e1cde2a2.zip FreeBSD-src-1ae16b4e6474257b54423ee06b559bf4e1cde2a2.tar.gz |
Turn most ffs 'DIAGNOSTIC's into INVARIANTS.
Diffstat (limited to 'sys/ufs/ffs/ffs_vnops.c')
-rw-r--r-- | sys/ufs/ffs/ffs_vnops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c index 7792cc4..90f0e25 100644 --- a/sys/ufs/ffs/ffs_vnops.c +++ b/sys/ufs/ffs/ffs_vnops.c @@ -325,7 +325,7 @@ loop: passes -= 1; goto loop; } -#ifdef DIAGNOSTIC +#ifdef INVARIANTS if (!vn_isdisk(vp, NULL)) vprint("ffs_fsync: dirty", vp); #endif @@ -443,7 +443,7 @@ ffs_read(ap) seqcount = ap->a_ioflag >> IO_SEQSHIFT; ip = VTOI(vp); -#ifdef DIAGNOSTIC +#ifdef INVARIANTS if (uio->uio_rw != UIO_READ) panic("ffs_read: mode"); @@ -645,7 +645,7 @@ ffs_write(ap) seqcount = ap->a_ioflag >> IO_SEQSHIFT; ip = VTOI(vp); -#ifdef DIAGNOSTIC +#ifdef INVARIANTS if (uio->uio_rw != UIO_WRITE) panic("ffs_write: mode"); #endif @@ -869,7 +869,7 @@ ffs_extread(struct vnode *vp, struct uio *uio, int ioflag) fs = ip->i_fs; dp = ip->i_din2; -#ifdef DIAGNOSTIC +#ifdef INVARIANTS if (uio->uio_rw != UIO_READ || fs->fs_magic != FS_UFS2_MAGIC) panic("ffs_extread: mode"); @@ -1031,7 +1031,7 @@ ffs_extwrite(struct vnode *vp, struct uio *uio, int ioflag, struct ucred *ucred) KASSERT(!(ip->i_flag & IN_SPACECOUNTED), ("inode %u: inode is dead", ip->i_number)); -#ifdef DIAGNOSTIC +#ifdef INVARIANTS if (uio->uio_rw != UIO_WRITE || fs->fs_magic != FS_UFS2_MAGIC) panic("ffs_extwrite: mode"); #endif |