summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/ffs_inode.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-10-25 09:14:03 +0000
committerphk <phk@FreeBSD.org>2004-10-25 09:14:03 +0000
commit0e87ab8bc6e542c845f82c2bb526208587b200ad (patch)
tree200ff5f062ab8c134c56e5c8d6bd7fb2f35f6bad /sys/ufs/ffs/ffs_inode.c
parent100e94e682f93c8aeae0f6683f1adab50f67b1f7 (diff)
downloadFreeBSD-src-0e87ab8bc6e542c845f82c2bb526208587b200ad.zip
FreeBSD-src-0e87ab8bc6e542c845f82c2bb526208587b200ad.tar.gz
Loose the v_dirty* and v_clean* alias macros.
Check the count field where we just want to know the full/empty state, rather than using TAILQ_EMPTY() or TAILQ_FIRST().
Diffstat (limited to 'sys/ufs/ffs/ffs_inode.c')
-rw-r--r--sys/ufs/ffs/ffs_inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 372d83c..012542a 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -483,8 +483,8 @@ done:
VI_LOCK(ovp);
if (length == 0 &&
(fs->fs_magic != FS_UFS2_MAGIC || oip->i_din2->di_extsize == 0) &&
- (!TAILQ_EMPTY(&ovp->v_dirtyblkhd) ||
- !TAILQ_EMPTY(&ovp->v_cleanblkhd)))
+ (vp->v_bufobj.bo_dirty.bv_cnt > 0 ||
+ vp->v_bufobj.bo_clean.bv_cnt > 0))
panic("ffs_truncate3");
VI_UNLOCK(ovp);
#endif /* DIAGNOSTIC */
OpenPOWER on IntegriCloud